/external/python/cpython2/Lib/ |
D | markupbase.py | 52 rawdata = self.rawdata 53 nlines = rawdata.count("\n", i, j) 56 pos = rawdata.rindex("\n", i, j) # Should not fail 76 rawdata = self.rawdata 78 assert rawdata[i:j] == "<!", "unexpected call to parse_declaration" 79 if rawdata[j:j+1] == ">": 82 if rawdata[j:j+1] in ("-", ""): 87 n = len(rawdata) 88 if rawdata[j:j+2] == '--': #comment 91 elif rawdata[j] == '[': #marked section [all …]
|
D | HTMLParser.py | 104 self.rawdata = '' 116 self.rawdata = self.rawdata + data 144 rawdata = self.rawdata 146 n = len(rawdata) 148 match = self.interesting.search(rawdata, i) # < or & 155 if i < j: self.handle_data(rawdata[i:j]) 158 startswith = rawdata.startswith 160 if starttagopen.match(rawdata, i): # < + letter 178 k = rawdata.find('>', i + 1) 180 k = rawdata.find('<', i + 1) [all …]
|
D | sgmllib.py | 74 self.rawdata = '' 103 self.rawdata = self.rawdata + data 117 rawdata = self.rawdata 119 n = len(rawdata) 122 self.handle_data(rawdata[i:n]) 125 match = interesting.search(rawdata, i) 129 self.handle_data(rawdata[i:j]) 132 if rawdata[i] == '<': 133 if starttagopen.match(rawdata, i): 135 self.handle_data(rawdata[i]) [all …]
|
D | xmllib.py | 143 self.rawdata = '' 171 self.rawdata = self.rawdata + data 243 rawdata = self.rawdata 245 n = len(rawdata) 250 data = rawdata[i:n] 255 res = interesting.search(rawdata, i) 261 data = rawdata[i:j] 273 if rawdata[i] == '<': 274 if starttagopen.match(rawdata, i): 276 data = rawdata[i] [all …]
|
D | Cookie.py | 633 def load(self, rawdata): argument 639 if type(rawdata) == type(""): 640 self.__ParseString(rawdata) 643 for k, v in rawdata.items():
|
/external/python/cpython3/Lib/ |
D | _markupbase.py | 51 rawdata = self.rawdata 52 nlines = rawdata.count("\n", i, j) 55 pos = rawdata.rindex("\n", i, j) # Should not fail 75 rawdata = self.rawdata 77 assert rawdata[i:j] == "<!", "unexpected call to parse_declaration" 78 if rawdata[j:j+1] == ">": 81 if rawdata[j:j+1] in ("-", ""): 86 n = len(rawdata) 87 if rawdata[j:j+2] == '--': #comment 90 elif rawdata[j] == '[': #marked section [all …]
|
/external/python/cpython3/Lib/html/ |
D | parser.py | 98 self.rawdata = '' 110 self.rawdata = self.rawdata + data 135 rawdata = self.rawdata 137 n = len(rawdata) 140 j = rawdata.find('<', i) 148 amppos = rawdata.rfind('&', max(i, n-34)) 150 not re.compile(r'[\s;]').search(rawdata, amppos)): 154 match = self.interesting.search(rawdata, i) # < or & 163 self.handle_data(unescape(rawdata[i:j])) 165 self.handle_data(rawdata[i:j]) [all …]
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | sbixGlyph.py | 25 …ame=None, originOffsetX=0, originOffsetY=0, graphicType=None, imageData=None, rawdata=None, gid=0): argument 31 self.rawdata = rawdata 48 if self.rawdata is None: 51 if len(self.rawdata) > 0: 52 if len(self.rawdata) < sbixGlyphHeaderFormatSize: 57 sstruct.unpack(sbixGlyphHeaderFormat, self.rawdata[:sbixGlyphHeaderFormatSize], self) 61 gid, = struct.unpack(">H", self.rawdata[sbixGlyphHeaderFormatSize:]) 64 self.imageData = self.rawdata[sbixGlyphHeaderFormatSize:] 67 del self.rawdata 78 self.rawdata = b"" [all …]
|
D | sbixStrike.py | 27 def __init__(self, rawdata=None, ppem=0, resolution=72): argument 28 self.data = rawdata 60 …current_glyph = Glyph(rawdata=self.data[self.glyphDataOffsets[i]:self.glyphDataOffsets[i+1]], gid=… 84 self.bitmapData += current_glyph.rawdata 85 currentGlyphDataOffset += len(current_glyph.rawdata)
|
/external/elfutils/libdwelf/ |
D | dwelf_elf_gnu_debuglink.c | 62 Elf_Data *rawdata = elf_rawdata (scn, NULL); in dwelf_elf_gnu_debuglink() local 63 if (rawdata == NULL || rawdata->d_buf == NULL) in dwelf_elf_gnu_debuglink() 68 if (rawdata->d_size <= sizeof *crc in dwelf_elf_gnu_debuglink() 69 || memchr (rawdata->d_buf, '\0', rawdata->d_size - sizeof *crc) == NULL) in dwelf_elf_gnu_debuglink() 82 .d_buf = rawdata->d_buf + rawdata->d_size - sizeof *crc, in dwelf_elf_gnu_debuglink() 97 return rawdata->d_buf; in dwelf_elf_gnu_debuglink()
|
/external/elfutils/libelf/ |
D | elf_getdata.c | 203 scn->data_list.data.d.d_off = scn->rawdata.d.d_off; in convert_data() 204 scn->data_list.data.d.d_align = scn->rawdata.d.d_align; in convert_data() 205 scn->data_list.data.d.d_version = scn->rawdata.d.d_version; in convert_data() 313 scn->rawdata_base = scn->rawdata.d.d_buf in __libelf_set_rawdata_wrlock() 331 scn->rawdata_base = scn->rawdata.d.d_buf in __libelf_set_rawdata_wrlock() 333 if (scn->rawdata.d.d_buf == NULL) in __libelf_set_rawdata_wrlock() 339 ssize_t n = pread_retry (elf->fildes, scn->rawdata.d.d_buf, size, in __libelf_set_rawdata_wrlock() 344 free (scn->rawdata.d.d_buf); in __libelf_set_rawdata_wrlock() 345 scn->rawdata_base = scn->rawdata.d.d_buf = NULL; in __libelf_set_rawdata_wrlock() 359 scn->rawdata.d.d_size = size; in __libelf_set_rawdata_wrlock() [all …]
|
D | elf_getdata_rawchunk.c | 82 char *rawdata = elf->map_address + elf->start_offset + offset; in elf_getdata_rawchunk() local 83 if (((uintptr_t) rawdata & (align - 1)) == 0) in elf_getdata_rawchunk() 84 rawchunk = rawdata; in elf_getdata_rawchunk() 91 memcpy (rawchunk, rawdata, size); in elf_getdata_rawchunk()
|
D | elf_compress.c | 315 scn->rawdata.d.d_off = 0; in __libelf_reset_rawdata() 316 scn->rawdata.d.d_version = EV_CURRENT; in __libelf_reset_rawdata() 317 scn->rawdata.d.d_buf = buf; in __libelf_reset_rawdata() 318 scn->rawdata.d.d_size = size; in __libelf_reset_rawdata() 319 scn->rawdata.d.d_align = align; in __libelf_reset_rawdata() 320 scn->rawdata.d.d_type = type; in __libelf_reset_rawdata()
|
D | elf32_updatenull.c | 280 && scn->rawdata.d.d_buf != NULL) in __elfw2() 281 data = &scn->rawdata.d; in __elfw2() 328 offset += scn->rawdata.d.d_size; in __elfw2()
|
D | elf_rawdata.c | 74 return &scn->rawdata.d; in elf_rawdata()
|
/external/python/cpython2/Lib/test/ |
D | test_binascii.py | 20 rawdata = "The quick brown fox jumps over the lazy dog.\r\n" variable in BinASCIITest 22 rawdata += "".join(map(chr, xrange(256))) 23 rawdata += "\r\nHello world.\n" 26 self.data = self.type2test(self.rawdata) 42 raw = self.rawdata[:MAX_ALL] 66 for i in range(0, len(self.rawdata), MAX_BASE64): 67 b = self.type2test(self.rawdata[i:i+MAX_BASE64]) 75 self.assertEqual(res, self.rawdata) 83 b = self.type2test(self.rawdata[i:i+MAX_BASE64]) 109 self.assertEqual(res, self.rawdata) [all …]
|
D | test_cookie.py | 160 rawdata = 'Customer="WILE_E_COYOTE"; Path=/acme; Version=1' 161 expected_output = 'Set-Cookie: %s' % rawdata 164 C.load(rawdata)
|
/external/python/cpython3/Lib/test/ |
D | test_binascii.py | 20 rawdata = b"The quick brown fox jumps over the lazy dog.\r\n" variable in BinASCIITest 22 rawdata += bytes(range(256)) 23 rawdata += b"\r\nHello world.\n" 26 self.data = self.type2test(self.rawdata) 42 raw = self.rawdata[:MAX_ALL] 66 for i in range(0, len(self.rawdata), MAX_BASE64): 67 b = self.type2test(self.rawdata[i:i+MAX_BASE64]) 75 self.assertEqual(res, self.rawdata) 83 b = self.type2test(self.rawdata[i:i+MAX_BASE64]) 108 self.assertEqual(res, self.rawdata) [all …]
|
D | test_http_cookies.py | 192 rawdata = 'Customer="WILE_E_COYOTE"; Path=/acme; Version=1' 193 expected_output = 'Set-Cookie: %s' % rawdata 196 C.load(rawdata) 205 rawdata = "a=b; c,d=e" 208 C.load(rawdata)
|
/external/autotest/client/common_lib/cros/cfm/usb/ |
D | usb_device_collector.py | 45 def _extract_usb_data(self, rawdata): argument 68 rawdata += '\n' 70 fsm_results = re_table.ParseText(rawdata)
|
/external/autotest/client/common_lib/cros/manual/ |
D | get_usb_devices.py | 82 def extract_usb_data(rawdata): argument 93 rawdata += '\n' 95 fsm_results = re_table.ParseText(rawdata)
|
/external/apache-http/src/org/apache/commons/codec/net/ |
D | RFC1522Codec.java | 82 byte [] rawdata = doEncoding(text.getBytes(charset)); in encodeText() 83 buffer.append(new String(rawdata, StringEncodings.US_ASCII)); in encodeText()
|
/external/python/cpython3/Lib/http/ |
D | cookies.py | 522 def load(self, rawdata): argument 528 if isinstance(rawdata, str): 529 self.__parse_string(rawdata) 532 for key, value in rawdata.items():
|
/external/python/cpython2/Mac/Modules/file/ |
D | _Filemodule.c | 986 char *rawdata = NULL; in Alias_tp_init() local 991 …if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "|O&s#", kw, Alias_Convert, &itself, &rawdata, &raw… in Alias_tp_init() 993 if (itself && rawdata) in Alias_tp_init() 998 if (!itself && !rawdata) in Alias_tp_init() 1003 if (rawdata) in Alias_tp_init() 1011 memcpy((char *)*h, rawdata, rawdatalen); in Alias_tp_init() 1450 char *rawdata = NULL; in FSSpec_tp_init() local 1454 if (!PyArg_ParseTupleAndKeywords(_args, _kwds, "|Os#", kw, &v, &rawdata, &rawdatalen)) in FSSpec_tp_init() 1456 if (v && rawdata) in FSSpec_tp_init() 1461 if (!v && !rawdata) in FSSpec_tp_init() [all …]
|
/external/python/cpython2/Lib/plat-mac/ |
D | aepack.py | 155 return Carbon.File.Alias(rawdata=desc.data) 176 return Carbon.File.FSSpec(rawdata=desc.data) 178 return Carbon.File.FSRef(rawdata=desc.data)
|