Package prest :: 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__ = None
hash(x)
  blankspaces = u...
  separators = u'`~!@#$%^&*()_-+=\|]}[{";:/?.>,<†„“।॥ו–´’‘‚י0123...
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]

blankspaces

Value:
u''' 
\c
	…'''

separators

Value:
u'`~!@#$%^&*()_-+=\|]}[{";:/?.>,<†„“।॥ו–´’‘‚י0123456789ः'