This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def translate_to_ar_numbers(num): | |
| """ | |
| Translates western digits in string to their correspondings arabic equivalent | |
| All other characters stays the same | |
| Args: | |
| num: number or string with numbers where we need to replace digits | |
| Returns: | |
| unicode string with replaced to arabic digits | |
| for example: u'٢٢٠-٢٤٠' -- for num="220-240" | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def translate_to_ar_numbers(num): | |
| """ | |
| Translates western digits in string to their correspondings arabic equivalent | |
| Args: | |
| num: number or string with numbers where we need to replace digits | |
| Returns: | |
| unicode string with replaced to arabic digits | |
| for example: u'\xd9\xd9\xd9-\xd9\xd9\xd9' -- for num="220-240" | |
| u'\xa3\xa2\xd9.\xd9\xa2' -- for num="750.45" | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function urlGET(){ | |
| var search = window.location.search.replace('?', '').split('&'); | |
| var GET = new Array(); | |
| for(var i=0; i<search.length; i+=1){ | |
| search[i] = search[i].split('='); | |
| GET[decodeURIComponent(search[i][0])] = decodeURIComponent(search[i][1]); | |
| }; | |
| return GET; | |
| }; |
NewerOlder