Lines Matching defs:string
422 """Encodes an object to a string in some encoding, or to Unicode.
455 the string in DEFAULT_OUTPUT_ENCODING. That encoding needs to be
467 """text.string gives you text. This is for backwards
468 compatibility for Navigable*String, but for CData* it lets you
469 get the string without the CData wrapper."""
470 if attr == 'string':
569 def setString(self, string):
570 """Replace the contents of the tag with a string"""
572 self.append(string)
574 string = property(getString, setString)
690 """Renders this tag as a string."""
698 """Returns a string or Unicode representation of this tag and
703 the original string."""
803 """Renders the contents of this tag as a string in the given
804 encoding. If encoding is None, returns a Unicode string.."""
842 string, a list of strings, a regular expression object, or a
843 callable that takes a string and returns whether or not the
844 string matches for some custom definition of 'matches'. The
986 #other ways of matching match the tag name as a string.
991 #Now we know that chunk is either a string, or None.
1087 provided markup (which can be a string or a file-like object)
1209 """Returns true iff the given string is the name of a
1676 """This class will push a tag with only a single string child into
1678 name, and the value is the string child. An example should give
1685 You can then access fooTag['bar'] instead of fooTag.barTag.string.
1758 converting it to a Unicode string. If the source encoding is
1843 '''Given a string and its encoding, decodes the string into Unicode.
1844 %encoding is a string recognized by encodings.aliases'''
1972 import string
1973 c.EBCDIC_TO_ASCII_MAP = string.maketrans( \