Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 39) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_grp.py65 chars = list(fakename)
66 for i in xrange(len(chars)):
67 if chars[i] == 'z':
68 chars[i] = 'A'
70 elif chars[i] == 'Z':
73 chars[i] = chr(ord(chars[i]) + 1)
82 fakename = ''.join(chars)
Dtest_pwd.py66 chars = list(fakename)
67 for i in xrange(len(chars)):
68 if chars[i] == 'z':
69 chars[i] = 'A'
71 elif chars[i] == 'Z':
74 chars[i] = chr(ord(chars[i]) + 1)
83 fakename = ''.join(chars)
Dtest_ucn.py26 chars = [
57 u"".join([self.checkletter(*args) for args in zip(chars, string)]),
Dtest_codecs.py13 def write(self, chars): argument
14 self._buffer += chars
1357 (chars, size) = codecs.getdecoder(encoding)(bytes)
1358 self.assertEqual(chars, s, "%r != %r (encoding=%r)" % (chars, s, encoding))
1474 (chars, size) = codecs.getdecoder(encoding)(bytes)
1475 self.assertEqual(chars, s, "%r != %r (encoding=%r)" % (chars, s, encoding))
/device/google/bonito/json-c/
Dprintbuf.c125 int chars; in vasprintf() local
131 chars = _vscprintf(fmt, ap)+1; in vasprintf()
135 chars = vsnprintf(&_T_emptybuffer, 0, fmt, ap)+1; in vasprintf()
136 if(chars < 0) { chars *= -1; } /* CAW: old glibc versions have this problem */ in vasprintf()
139 b = (char*)malloc(sizeof(char)*chars); in vasprintf()
142 if((chars = vsprintf(b, fmt, ap)) < 0) in vasprintf()
149 return chars; in vasprintf()
/device/google/crosshatch/json-c/
Dprintbuf.c125 int chars; in vasprintf() local
131 chars = _vscprintf(fmt, ap)+1; in vasprintf()
135 chars = vsnprintf(&_T_emptybuffer, 0, fmt, ap)+1; in vasprintf()
136 if(chars < 0) { chars *= -1; } /* CAW: old glibc versions have this problem */ in vasprintf()
139 b = (char*)malloc(sizeof(char)*chars); in vasprintf()
142 if((chars = vsprintf(b, fmt, ap)) < 0) in vasprintf()
149 return chars; in vasprintf()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/cgi/
Dwiki.py88 chars = []
90 if chars and c.isupper():
91 chars.append(' ')
92 chars.append(c)
93 return "".join(chars)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dminigzip.c87 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM local
95 if (chars != 0) {
97 if (chars >= 2
98 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
99 chars -= 2;
100 msgbuf[chars] = 0;
103 if (chars > sizeof (buf) - 1) {
104 chars = sizeof (buf) - 1;
105 msgbuf[chars] = 0;
108 wcstombs(buf, msgbuf, chars + 1);
Dgzlib.c40 DWORD chars = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM local
48 if (chars != 0) {
50 if (chars >= 2
51 && msgbuf[chars - 2] == '\r' && msgbuf[chars - 1] == '\n') {
52 chars -= 2;
53 msgbuf[chars] = 0;
56 if (chars > sizeof (buf) - 1) {
57 chars = sizeof (buf) - 1;
58 msgbuf[chars] = 0;
61 wcstombs(buf, msgbuf, chars + 1);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_json.c82 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars);
159 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars) in ascii_escape_char() argument
164 output[chars++] = '\\'; in ascii_escape_char()
166 case '\\': output[chars++] = (char)c; break; in ascii_escape_char()
167 case '"': output[chars++] = (char)c; break; in ascii_escape_char()
168 case '\b': output[chars++] = 'b'; break; in ascii_escape_char()
169 case '\f': output[chars++] = 'f'; break; in ascii_escape_char()
170 case '\n': output[chars++] = 'n'; break; in ascii_escape_char()
171 case '\r': output[chars++] = 'r'; break; in ascii_escape_char()
172 case '\t': output[chars++] = 't'; break; in ascii_escape_char()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_json.c82 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars);
159 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars) in ascii_escape_char() argument
164 output[chars++] = '\\'; in ascii_escape_char()
166 case '\\': output[chars++] = (char)c; break; in ascii_escape_char()
167 case '"': output[chars++] = (char)c; break; in ascii_escape_char()
168 case '\b': output[chars++] = 'b'; break; in ascii_escape_char()
169 case '\f': output[chars++] = 'f'; break; in ascii_escape_char()
170 case '\n': output[chars++] = 'n'; break; in ascii_escape_char()
171 case '\r': output[chars++] = 'r'; break; in ascii_escape_char()
172 case '\t': output[chars++] = 't'; break; in ascii_escape_char()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/unicode/
Dmakeunicodedata.py103 index = [0] * len(unicode.chars)
111 for char in unicode.chars:
136 decomp_index = [0] * len(unicode.chars)
140 comp_first = [None] * len(unicode.chars)
141 comp_last = [None] * len(unicode.chars)
143 for char in unicode.chars:
186 for i in unicode.chars:
361 index = [0] * len(unicode.chars)
366 for char in unicode.chars:
571 names = [None] * len(unicode.chars)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/dom/
Dpulldom.py155 def ignorableWhitespace(self, chars): argument
156 node = self.document.createTextNode(chars)
160 def characters(self, chars): argument
161 node = self.document.createTextNode(chars)
315 def ignorableWhitespace(self, chars): argument
316 PullDOM.ignorableWhitespace(self, chars)
321 def characters(self, chars): argument
322 PullDOM.characters(self, chars)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/dom/
Dpulldom.py155 def ignorableWhitespace(self, chars): argument
156 node = self.document.createTextNode(chars)
160 def characters(self, chars): argument
161 node = self.document.createTextNode(chars)
315 def ignorableWhitespace(self, chars): argument
316 PullDOM.ignorableWhitespace(self, chars)
321 def characters(self, chars): argument
322 PullDOM.characters(self, chars)
/device/linaro/bootloader/edk2/StdLib/LibC/Time/
DZoneProc.c122 &sp->chars[ttisp->tt_abbrind]; in settzname()
136 &sp->chars[ttisp->tt_abbrind]; in settzname()
422 sp->chars[i] = *p++; in tzload()
423 sp->chars[i] = '\0'; /* ensure '\0' at end */ in tzload()
590 if (stdlen >= sizeof sp->chars) in tzparse()
591 stdlen = (sizeof sp->chars) - 1; in tzparse()
750 if ((size_t) sp->charcnt > sizeof sp->chars) in tzparse()
752 cp = sp->chars; in tzparse()
823 (void)strncpyX(lclptr->chars, gmt, sizeof(lclptr->chars)); in tzset()
DTimeVals.h96 char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS + 1, sizeof gmt), (2 * (MY_TZNAME_MAX + 1)))]; member
DTime.c696 else tmp->TM_ZONE = gmtptr->chars; in gmtsub()
699 tmp->TM_ZONE = gmtptr->chars; in gmtsub()
751 tzname[tmp->tm_isdst] = &sp->chars[ttisp->tt_abbrind]; in localsub()
753 tmp->TM_ZONE = &sp->chars[ttisp->tt_abbrind]; in localsub()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dstring.py248 def strip(s, chars=None): argument
257 return s.strip(chars)
260 def lstrip(s, chars=None): argument
267 return s.lstrip(chars)
270 def rstrip(s, chars=None): argument
277 return s.rstrip(chars)
DUserString.py104 def lstrip(self, chars=None): return self.__class__(self.data.lstrip(chars)) argument
117 def rstrip(self, chars=None): return self.__class__(self.data.rstrip(chars)) argument
125 def strip(self, chars=None): return self.__class__(self.data.strip(chars)) argument
Dcodecs.py424 def read(self, size=-1, chars=-1, firstline=False): argument
460 if chars < 0:
467 if len(self.charbuffer) >= chars:
493 if chars < 0:
499 result = self.charbuffer[:chars]
500 self.charbuffer = self.charbuffer[chars:]
536 data += self.read(size=1, chars=1)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dstring.py250 def strip(s, chars=None): argument
259 return s.strip(chars)
262 def lstrip(s, chars=None): argument
269 return s.lstrip(chars)
272 def rstrip(s, chars=None): argument
279 return s.rstrip(chars)
Dcodecs.py430 def read(self, size=-1, chars=-1, firstline=False): argument
466 if chars >= 0:
467 if len(self.charbuffer) >= chars:
496 if chars < 0:
502 result = self.charbuffer[:chars]
503 self.charbuffer = self.charbuffer[chars:]
539 data += self.read(size=1, chars=1)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/data/
Dmsg_15.txt49 Some removed base64 encoded chars.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/sax/
Dsaxutils.py226 def ignorableWhitespace(self, chars): argument
227 self._cont_handler.ignorableWhitespace(chars)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/sax/
Dsaxutils.py254 def ignorableWhitespace(self, chars): argument
255 self._cont_handler.ignorableWhitespace(chars)

12