Message
This is a string used as a message. It has a domain attribute that is its source domain, and a default attribute that is its default text to display when there is no translation. domain may be None meaning there is no translation domain. default may also be None, in which case the message id itself implicitly serves as the default text.
There are no implemented interfaces.
default
(type: member_descriptor
)
<member 'default' of 'zope.i18nmessageid.message.Message' objects>
domain
(type: member_descriptor
)
<member 'domain' of 'zope.i18nmessageid.message.Message' objects>
mapping
(type: member_descriptor
)
<member 'mapping' of 'zope.i18nmessageid.message.Message' objects>
capitalize(...)
Return a capitalized version of S, i.e. make the first character have upper case.
center(...)
Return S centered in a Unicode string of length width. Padding is done using the specified fill character (default is a space)
count(...)
Return the number of occurrences of substring sub in Unicode string S[start:end]. Optional arguments start and end are interpreted as in slice notation.
decode(...)
Decodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is strict
meaning that encoding errors raise
a UnicodeDecodeError. Other possible values are ignore
and replace
as well as any other name registerd with codecs.register_error that is
able to handle UnicodeDecodeErrors.
encode(...)
Encodes S using the codec registered for encoding. encoding defaults
to the default encoding. errors may be given to set a different error
handling scheme. Default is strict
meaning that encoding errors raise
a UnicodeEncodeError. Other possible values are ignore
, replace
and
xmlcharrefreplace
as well as any other name registered with
codecs.register_error that can handle UnicodeEncodeErrors.
endswith(...)
Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position.
expandtabs(...)
Return a copy of S where all tab characters are expanded using spaces. If tabsize is not given, a tab size of 8 characters is assumed.
find(...)
Return the lowest index in S where substring sub is found, such that sub is contained within s[start,end]. Optional arguments start and end are interpreted as in slice notation.
Return -1 on failure.
index(...)
Like S.find() but raise ValueError when the substring is not found.
isalnum(...)
Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise.
isalpha(...)
Return True if all characters in S are alphabetic and there is at least one character in S, False otherwise.
isdecimal(...)
Return True if there are only decimal characters in S, False otherwise.
isdigit(...)
Return True if all characters in S are digits and there is at least one character in S, False otherwise.
islower(...)
Return True if all cased characters in S are lowercase and there is at least one cased character in S, False otherwise.
isnumeric(...)
Return True if there are only numeric characters in S, False otherwise.
isspace(...)
Return True if all characters in S are whitespace and there is at least one character in S, False otherwise.
istitle(...)
Return True if S is a titlecased string and there is at least one character in S, i.e. upper- and titlecase characters may only follow uncased characters and lowercase characters only cased ones. Return False otherwise.
isupper(...)
Return True if all cased characters in S are uppercase and there is at least one cased character in S, False otherwise.
join(...)
Return a string which is the concatenation of the strings in the sequence. The separator between elements is S.
ljust(...)
Return S left justified in a Unicode string of length width. Padding is done using the specified fill character (default is a space).
lower(...)
Return a copy of the string S converted to lowercase.
lstrip(...)
Return a copy of the string S with leading whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is a str, it will be converted to unicode before stripping
replace(...)
Return a copy of S with all occurrences of substring old replaced by new. If the optional argument maxsplit is given, only the first maxsplit occurrences are replaced.
rfind(...)
Return the highest index in S where substring sub is found, such that sub is contained within s[start,end]. Optional arguments start and end are interpreted as in slice notation.
Return -1 on failure.
rindex(...)
Like S.rfind() but raise ValueError when the substring is not found.
rjust(...)
Return S right justified in a Unicode string of length width. Padding is done using the specified fill character (default is a space).
rsplit(...)
Return a list of the words in S, using sep as the delimiter string, starting at the end of the string and working to the front. If maxsplit is given, at most maxsplit splits are done. If sep is not specified, any whitespace string is a separator.
rstrip(...)
Return a copy of the string S with trailing whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is a str, it will be converted to unicode before stripping
split(...)
Return a list of the words in S, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done. If sep is not specified or is None, any whitespace string is a separator.
splitlines(...)
Return a list of the lines in S, breaking at line boundaries. Line breaks are not included in the resulting list unless keepends is given and true.
startswith(...)
Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position.
strip(...)
Return a copy of the string S with leading and trailing whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is a str, it will be converted to unicode before stripping
swapcase(...)
Return a copy of S with uppercase characters converted to lowercase and vice versa.
title(...)
Return a titlecased version of S, i.e. words start with title case characters, all remaining cased characters have lower case.
translate(...)
Return a copy of the string S, where all characters have been mapped through the given translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, Unicode strings or None. Unmapped characters are left untouched. Characters mapped to None are deleted.
upper(...)
Return a copy of S converted to uppercase.
zfill(...)
Pad a numeric string x with zeros on the left, to fill a field of the specified width. The string x is never truncated.
There are no known subclasses.