Package tipy :: Module char
[hide private]
[frames] | no frames]

Module char

source code

Some variables and functions to help handling characters categories.

Functions [hide private]
int
first_word_char(string)
Return the index of the first word character in a string.
source code
bool
is_word_char(char)
Check if a character is a word character.
source code
int
last_word_char(string)
Return the index of the last word character in a string.
source code
Variables [hide private]
  __package__ = 'tipy'
  blankspaces = ' \x0c\n\\c\r\t\x0b\xc2\x85'
  separators = '`~!@#$%^&*()_-+=\\|]}[{";:/?.>,<\xe2\x80\xa0\xe2...
Function Details [hide private]

first_word_char(string)

source code 

Return the index of the first word character in a string.

Returns: int
The index of the first word character in the string 'string' or -1 if the string contains no word character.

is_word_char(char)

source code 

Check if a character is a word character.

Returns: bool
True or False weither the character 'char' is a word character, i.e. a printable non-ponctuation character.

last_word_char(string)

source code 

Return the index of the last word character in a string.

Returns: int
The index of the last word character in the string 'string' or -1 if the string contains no word character.

Variables Details [hide private]

separators

Value:
'`~!@#$%^&*()_-+=\\|]}[{";:/?.>,<\xe2\x80\xa0\xe2\x80\x9e\xe2\x80\x9c\\
xe0\xa5\xa4\xe0\xa5\xa5\xd7\x95\xe2\x80\x93\xc2\xb4\xe2\x80\x99\xe2\x8\
0\x98\xe2\x80\x9a\xd7\x990123456789\xe0\xa4\x83'