|
dummy_wrapper(str)
Dummy Translation wrapper, just returning the same string. |
source code
|
|
|
dummyP_wrapper(str1,
str2,
n)
Dummy Plural Translation wrapper, just returning the singular or
plural string. |
source code
|
|
|
__utf8_bisearch(ucs,
table)
auxiliary function for binary search in interval table. |
source code
|
|
|
__utf8_ucp_width(ucs)
Get the textual width of a ucs character. |
source code
|
|
|
|
|
|
|
utf8_width(msg)
Get the textual width of a utf8 string. |
source code
|
|
|
|
|
utf8_width_fill(msg,
fill,
chop=None,
left=True,
prefix='
' ,
suffix='
' )
Expand a utf8 msg to a specified "width" or chop to same. |
source code
|
|
|
utf8_valid(msg)
Return True/False is the text is valid utf8. |
source code
|
|
|
|
|
utf8_text_wrap(text,
width=70,
initial_indent='
' ,
subsequent_indent='
' )
Works like we want textwrap.wrap() to work, uses utf-8 data and
doesn't screw up lists/blocks/etc. |
source code
|
|
|
utf8_text_fill(text,
*args,
**kwargs)
Works like we want textwrap.fill() to work, uses utf-8 data and
doesn't screw up lists/blocks/etc. |
source code
|
|
|
to_unicode(obj,
encoding=' utf-8 ' ,
errors=' replace ' )
convert a 'str' to 'unicode' |
source code
|
|
|
to_utf8(obj,
errors=' replace ' )
convert 'unicode' to an encoded utf-8 byte string |
source code
|
|
|
to_unicode_maybe(obj,
encoding=' utf-8 ' ,
errors=' replace ' )
Don't ask don't tell, only use when you must |
source code
|
|
|
to_str(obj)
Convert something to a string, if it isn't one. |
source code
|
|
|
str_eq(a,
b)
convert between unicode and not and compare them, w/o warning or
being annoying |
source code
|
|