Lines Matching refs:data
16 self.data = seq
18 self.data = seq.data[:]
20 self.data = str(seq)
21 def __str__(self): return str(self.data)
22 def __repr__(self): return repr(self.data)
23 def __int__(self): return int(self.data)
24 def __long__(self): return long(self.data)
25 def __float__(self): return float(self.data)
26 def __complex__(self): return complex(self.data)
27 def __hash__(self): return hash(self.data)
31 return cmp(self.data, string.data)
33 return cmp(self.data, string)
35 return char in self.data
37 def __len__(self): return len(self.data)
38 def __getitem__(self, index): return self.__class__(self.data[index])
41 return self.__class__(self.data[start:end])
45 return self.__class__(self.data + other.data)
47 return self.__class__(self.data + other)
49 return self.__class__(self.data + str(other))
52 return self.__class__(other + self.data)
54 return self.__class__(str(other) + self.data)
56 return self.__class__(self.data*n)
59 return self.__class__(self.data % args)
62 def capitalize(self): return self.__class__(self.data.capitalize())
64 return self.__class__(self.data.center(width, *args))
66 return self.data.count(sub, start, end)
70 return self.__class__(self.data.decode(encoding, errors))
72 return self.__class__(self.data.decode(encoding))
74 return self.__class__(self.data.decode())
78 return self.__class__(self.data.encode(encoding, errors))
80 return self.__class__(self.data.encode(encoding))
82 return self.__class__(self.data.encode())
84 return self.data.endswith(suffix, start, end)
86 return self.__class__(self.data.expandtabs(tabsize))
88 return self.data.find(sub, start, end)
90 return self.data.index(sub, start, end)
91 def isalpha(self): return self.data.isalpha()
92 def isalnum(self): return self.data.isalnum()
93 def isdecimal(self): return self.data.isdecimal()
94 def isdigit(self): return self.data.isdigit()
95 def islower(self): return self.data.islower()
96 def isnumeric(self): return self.data.isnumeric()
97 def isspace(self): return self.data.isspace()
98 def istitle(self): return self.data.istitle()
99 def isupper(self): return self.data.isupper()
100 def join(self, seq): return self.data.join(seq)
102 return self.__class__(self.data.ljust(width, *args))
103 def lower(self): return self.__class__(self.data.lower())
104 def lstrip(self, chars=None): return self.__class__(self.data.lstrip(chars))
106 return self.data.partition(sep)
108 return self.__class__(self.data.replace(old, new, maxsplit))
110 return self.data.rfind(sub, start, end)
112 return self.data.rindex(sub, start, end)
114 return self.__class__(self.data.rjust(width, *args))
116 return self.data.rpartition(sep)
117 def rstrip(self, chars=None): return self.__class__(self.data.rstrip(chars))
119 return self.data.split(sep, maxsplit)
121 return self.data.rsplit(sep, maxsplit)
122 def splitlines(self, keepends=0): return self.data.splitlines(keepends)
124 return self.data.startswith(prefix, start, end)
125 def strip(self, chars=None): return self.__class__(self.data.strip(chars))
126 def swapcase(self): return self.__class__(self.data.swapcase())
127 def title(self): return self.__class__(self.data.title())
129 return self.__class__(self.data.translate(*args))
130 def upper(self): return self.__class__(self.data.upper())
131 def zfill(self, width): return self.__class__(self.data.zfill(width))
152 self.data = string
160 sub = sub.data
163 start, stop, step = index.indices(len(self.data))
172 self.data = self.data[:start] + sub + self.data[stop:]
175 index += len(self.data)
176 if index < 0 or index >= len(self.data): raise IndexError
177 self.data = self.data[:index] + sub + self.data[index+1:]
180 start, stop, step = index.indices(len(self.data))
187 self.data = self.data[:start] + self.data[stop:]
190 index += len(self.data)
191 if index < 0 or index >= len(self.data): raise IndexError
192 self.data = self.data[:index] + self.data[index+1:]
196 self.data = self.data[:start]+sub.data+self.data[end:]
198 self.data = self.data[:start]+sub+self.data[end:]
200 self.data = self.data[:start]+str(sub)+self.data[end:]
203 self.data = self.data[:start] + self.data[end:]
205 return UserString(self.data)
208 self.data += other.data
210 self.data += other
212 self.data += str(other)
215 self.data *= n