Python stringprep Library in_table_c8 and in_table_c9 functions














































Python stringprep Library in_table_c8 and in_table_c9 functions



Python stringprep Library

Stringprep describes a framework for preparing Unicode text strings in order to increase the possibility that string input and string comparison work in ways that make sense for typical users throughout the world.

Some functions of stringprep discussed here are as follows:

1. stringprep.in_table_c8(code)
2. stringprep.in_table_c9(code)

1. stringprep.in_table_c8(code)

This function in python stringprep library returns "True" or "False" depending on whether the given Unicode code point passed as argument is listed in the Table C.8.
This Table C.8 contains the Unicode code points that are used for changing the display properties of the characters or to deprecate that characters.
For example: The Table C.8 contains the Unicode code point U+200E(LEFT TO RIGHT MARK) which is used to set the way adjacent characters are grouped with respect to text direction.

To view the table visit: https://datatracker.ietf.org/doc/html/rfc3454#appendix-C.8



2. stringprep.in_table_c9(code):

This function in python stringprep library returns "True" or "False" depending on whether the given Unicode code point passed as argument is listed in the Table C.9.
This Table C.9 contains Tagging characters.
The Unicode Standard contains a set of invisible characters, also known as Tag characters. These tag characters can be used in sequences. The U+E0001 is the LANGUAGE TAG and other tagging characters range in U+E0020 to U+E007F. 
For example: Language Tag help in identifying a tag string as a language tag.

To view the table visit: https://datatracker.ietf.org/doc/html/rfc3454#appendix-C.9.




More Articles of Arkaja Sharan:

Name Views Likes
Python codecs Library Error Handling schemes module functions 120 0
Python codecs Library Error Handler register_error and lookup_error functions 119 0
Python codecs Library Error Handlers 136 0
Python codecs Library open and EncodedFile functions 119 0
Python codecs Library iterencode and iterdecode functions 134 0
Python codecs Library register and unregister functions 103 0
Python codecs Library getreader and getwriter functions 119 0
Python codecs Library getincrementalencoder and getincrementaldecoder 103 0
Python codecs Library getencoder and getdecoder functions 113 0
Python Introduction to codecs Library 140 0
Python fcntl Library flock and lockf functions 122 0
Python fcntl Library fcntl and ioctl functions 141 0
Python Resource Library resource usage functions 124 0
Python Resource Library resource usage symbolic constants 106 0
Python Resource Library Resource Limit Functions 125 0
Python resource library resource limit symbolic constants 121 0
Python Introduction to Resource Library 131 0
Python stringprep Library in_table_d1 and in_table_d2 functions 116 0
Python stringprep Library in_table_c8 and in_table_c9 functions 112 0
Python stringprep Library in_table_c5 in_table_c6 and in_table_c7 functions 105 0
Python stringprep Library in_table_c3 and in_table_c4 functions 110 0
Python stringprep library in_table_c21 in_table_c22 and in_table_c21_c22 116 0
Python stringprep library functions in_table_c11 in_table_c12 and in_table_c11_c12 112 0
Python Introduction to stringprep Library 125 0
Python unicodedata library is_normalized unidata_version and ucd_3_2_0 111 0
Python Unicodedata Library functions normalize and decomposition 165 0
Python Unicodedata Library functions east_asian_width and mirrored 110 1
Python Unicodedata Library category bidirectional and combining functions 163 0
Introduction to Unicodedata library lookup and name functions 112 0
Unicode Library decimal digit and numeric functions 118 0
Introduction to Unicode Data library 0 0

Comments