Lines Matching full:data
19 icPrefDataErr = -668 # problem with preference data
21 icTruncatedErr = -670 # more data was present than was returned
37 def __init__(self, data):
38 self.data = data
41 return "ICOpaqueData(%r)"%(self.data,)
45 def _decode_default(data, key):
46 if len(data) == 0:
47 return data
48 if ord(data[0]) == len(data)-1:
50 return data[1:]
51 return ICOpaqueData(data)
54 def _decode_multistr(data, key):
55 numstr = ord(data[0]) << 8 | ord(data[1])
59 strlen = ord(data[ptr])
60 str = data[ptr+1:ptr+strlen+1]
65 def _decode_fontrecord(data, key):
66 size = ord(data[0]) << 8 | ord(data[1])
67 face = ord(data[2])
68 namelen = ord(data[4])
69 return size, face, data[5:5+namelen]
71 def _decode_boolean(data, key):
72 return ord(data[0])
74 def _decode_text(data, key):
75 return data
77 def _decode_charset(data, key):
78 return data[:256], data[256:]
80 def _decode_appspec(data, key):
81 namelen = ord(data[4])
82 return data[0:4], data[5:5+namelen]
84 def _code_default(data, key):
85 return chr(len(data)) + data
87 def _code_multistr(data, key):
88 numstr = len(data)
90 for i in data:
94 def _code_fontrecord(data, key):
95 size, face, name = data
99 def _code_boolean(data, key):
100 print 'XXXX boolean:', repr(data)
101 return chr(data)
103 def _code_text(data, key):
104 return data
106 def _code_charset(data, key):
107 return data[0] + data[1]
109 def _code_appspec(data, key):
110 return data[0] + _code_default(data[1])
139 def _decode(data, key):
148 return decoder(data, key)
150 def _code(data, key):
151 if type(data) == _ICOpaqueDataType:
152 return data.data
161 return coder(data, key)
194 return _decode(self.h.data, key)
207 def parseurl(self, data, start=None, end=None, hint=""):
210 selEnd = len(data)
215 selStart, selEnd = self.ic.ICParseURL(hint, data, selStart, selEnd, self.h)
216 return self.h.data, selStart, selEnd
240 def parseurl(data, start=None, end=None, hint=""):
243 return _dft_ic.parseurl(data, start, end, hint)