Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
core.py File Reference

Go to the source code of this file.

Data Structures

class  IDNAError
 
class  IDNABidiError
 
class  InvalidCodepoint
 
class  InvalidCodepointContext
 

Namespaces

namespace  pip
 
namespace  pip._vendor
 
namespace  pip._vendor.idna
 
namespace  pip._vendor.idna.core
 

Functions

int _combining_class (int cp)
 
bool _is_script (str cp, str script)
 
bytes _punycode (str s)
 
str _unot (int s)
 
bool valid_label_length (Union[bytes, str] label)
 
bool valid_string_length (Union[bytes, str] label, bool trailing_dot)
 
bool check_bidi (str label, bool check_ltr=False)
 
bool check_initial_combiner (str label)
 
bool check_hyphen_ok (str label)
 
None check_nfc (str label)
 
bool valid_contextj (str label, int pos)
 
bool valid_contexto (str label, int pos, bool exception=False)
 
None check_label (Union[str, bytes, bytearray] label)
 
bytes alabel (str label)
 
str ulabel (Union[str, bytes, bytearray] label)
 
str uts46_remap (str domain, bool std3_rules=True, bool transitional=False)
 
bytes encode (Union[str, bytes, bytearray] s, bool strict=False, bool uts46=False, bool std3_rules=False, bool transitional=False)
 
str decode (Union[str, bytes, bytearray] s, bool strict=False, bool uts46=False, bool std3_rules=False)
 

Variables

int _virama_combining_class = 9
 
str _alabel_prefix = b'xn--'
 
 _unicode_dots_re = re.compile('[\u002e\u3002\uff0e\uff61]')