File indexing completed on 2024-04-28 15:53:59
0001 # AUTO-GENERATED FILE -- DO NOT EDIT 0002 0003 """ Common string manipulations, optimized for speed. 0004 0005 Always use "import string" rather than referencing 0006 this module directly. """ 0007 0008 __package__ = None 0009 0010 def atof(s): 0011 """ atof(s) -> float 0012 0013 Return the floating point number represented by the string s. """ 0014 return 1.0 0015 0016 def atoi(s, base=None): 0017 """ atoi(s [,base]) -> int 0018 0019 Return the integer represented by the string s in the given 0020 base, which defaults to 10. The string s must consist of one 0021 or more digits, possibly preceded by a sign. If base is 0, it 0022 is chosen from the leading characters of s, 0 for octal, 0x or 0023 0X for hexadecimal. If base is 16, a preceding 0x or 0X is 0024 accepted. """ 0025 return 1 0026 0027 def atol(s, base=None): 0028 """ atol(s [,base]) -> long 0029 0030 Return the long integer represented by the string s in the 0031 given base, which defaults to 10. The string s must consist 0032 of one or more digits, possibly preceded by a sign. If base 0033 is 0, it is chosen from the leading characters of s, 0 for 0034 octal, 0x or 0X for hexadecimal. If base is 16, a preceding 0035 0x or 0X is accepted. A trailing L or l is not accepted, 0036 unless base is 0. """ 0037 return None 0038 0039 def capitalize(s): 0040 """ capitalize(s) -> string 0041 0042 Return a copy of the string s with only its first character 0043 capitalized. """ 0044 return "" 0045 0046 def count(s, sub, start=None, end=None): 0047 """ count(s, sub[, start[, end]]) -> int 0048 0049 Return the number of occurrences of substring sub in string 0050 s[start:end]. Optional arguments start and end are 0051 interpreted as in slice notation. """ 0052 return 1 0053 0054 def expandtabs(string, tabsize=None): 0055 """ expandtabs(string, [tabsize]) -> string 0056 0057 Expand tabs in a string, i.e. replace them by one or more spaces, 0058 depending on the current column and the given tab size (default 8). 0059 The column number is reset to zero after each newline occurring in the 0060 string. This doesn't understand other non-printing characters. """ 0061 return "" 0062 0063 def find(s, sub, start=None, end=None): 0064 """ find(s, sub [,start [,end]]) -> in 0065 0066 Return the lowest index in s where substring sub is found, 0067 such that sub is contained within s[start,end]. Optional 0068 arguments start and end are interpreted as in slice notation. 0069 0070 Return -1 on failure. """ 0071 return None 0072 0073 def join(list, sep=None): 0074 """ join(list [,sep]) -> string 0075 joinfields(list [,sep]) -> string 0076 0077 Return a string composed of the words in list, with 0078 intervening occurrences of sep. Sep defaults to a single 0079 space. 0080 0081 (join and joinfields are synonymous) """ 0082 return "" 0083 0084 def joinfields(list, sep=None): 0085 """ join(list [,sep]) -> string 0086 joinfields(list [,sep]) -> string 0087 0088 Return a string composed of the words in list, with 0089 intervening occurrences of sep. Sep defaults to a single 0090 space. 0091 0092 (join and joinfields are synonymous) """ 0093 return "" 0094 0095 def lower(s): 0096 """ lower(s) -> string 0097 0098 Return a copy of the string s converted to lowercase. """ 0099 return "" 0100 0101 lowercase = 'abcdefghijklmnopqrstuvwxyz' 0102 0103 def lstrip(s): 0104 """ lstrip(s) -> string 0105 0106 Return a copy of the string s with leading whitespace removed. """ 0107 return "" 0108 0109 def maketrans(frm, to): 0110 """ maketrans(frm, to) -> string 0111 0112 Return a translation table (a string of 256 bytes long) 0113 suitable for use in string.translate. The strings frm and to 0114 must be of the same length. """ 0115 return "" 0116 0117 def replace(str, old, new, maxsplit=None): 0118 """ replace (str, old, new[, maxsplit]) -> string 0119 0120 Return a copy of string str with all occurrences of substring 0121 old replaced by new. If the optional argument maxsplit is 0122 given, only the first maxsplit occurrences are replaced. """ 0123 return "" 0124 0125 def rfind(s, sub, start=None, end=None): 0126 """ rfind(s, sub [,start [,end]]) -> int 0127 0128 Return the highest index in s where substring sub is found, 0129 such that sub is contained within s[start,end]. Optional 0130 arguments start and end are interpreted as in slice notation. 0131 0132 Return -1 on failure. """ 0133 return 1 0134 0135 def rstrip(s): 0136 """ rstrip(s) -> string 0137 0138 Return a copy of the string s with trailing whitespace removed. """ 0139 return "" 0140 0141 def split(s, sep=None, maxsplit=None): 0142 """ split(s [,sep [,maxsplit]]) -> list of strings 0143 splitfields(s [,sep [,maxsplit]]) -> list of strings 0144 0145 Return a list of the words in the string s, using sep as the 0146 delimiter string. If maxsplit is nonzero, splits into at most 0147 maxsplit words. If sep is not specified, any whitespace string 0148 is a separator. Maxsplit defaults to 0. 0149 0150 (split and splitfields are synonymous) """ 0151 return [] 0152 0153 def splitfields(s, sep=None, maxsplit=None): 0154 """ split(s [,sep [,maxsplit]]) -> list of strings 0155 splitfields(s [,sep [,maxsplit]]) -> list of strings 0156 0157 Return a list of the words in the string s, using sep as the 0158 delimiter string. If maxsplit is nonzero, splits into at most 0159 maxsplit words. If sep is not specified, any whitespace string 0160 is a separator. Maxsplit defaults to 0. 0161 0162 (split and splitfields are synonymous) """ 0163 return [] 0164 0165 def strip(s): 0166 """ strip(s) -> string 0167 0168 Return a copy of the string s with leading and trailing 0169 whitespace removed. """ 0170 return "" 0171 0172 def swapcase(s): 0173 """ swapcase(s) -> string 0174 0175 Return a copy of the string s with upper case characters 0176 converted to lowercase and vice versa. """ 0177 return "" 0178 0179 def translate(s, table, deletechars=None): 0180 """ translate(s,table [,deletechars]) -> string 0181 0182 Return a copy of the string s, where all characters occurring 0183 in the optional argument deletechars are removed, and the 0184 remaining characters have been mapped through the given 0185 translation table, which must be a string of length 256. """ 0186 return "" 0187 0188 def upper(s): 0189 """ upper(s) -> string 0190 0191 Return a copy of the string s converted to uppercase. """ 0192 return "" 0193 0194 uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 0195 whitespace = """ 0196 """ 0197