Lines Matching defs:string
76 The load() method of a Cookie extracts cookies from a string. In a
86 within a string. Escaped quotation marks, nested semicolons, and other
114 the value to a string, when the values are set dictionary-style.
118 >>> C["string"] = "seven"
121 >>> C["string"].value
124 'Set-Cookie: number=7\r\nSet-Cookie: string=seven'
133 import string
162 _LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~:"
175 r"""Quote a string for use in a cookie header.
177 If the string does not need to be double-quoted, then just return the
178 string. Otherwise, surround the string in doublequotes and quote
198 # We have to assume that we must decode this string.
445 "(?:[^\\"]|\\.)*" # Any doublequoted string
449 [""" + _LegalValueChars + r"""]* # Any word or empty string
501 """Return a string suitable for HTTP."""
518 """Return a string suitable for JavaScript."""
526 """Load cookies from a string (presumably HTTP_COOKIE) or
541 n = len(str) # Length of string
548 # We first parse the whole cookie string and reject it if it's
570 # Invalid cookie string
576 # Invalid cookie string
584 # Invalid cookie string
587 # The cookie string is valid, apply it.
604 calls the builtin str() to convert the value to a string. Values