Home
last modified time | relevance | path

Searched refs:_chars (Results 1 – 3 of 3) sorted by relevance

/external/lzma/CPP/Common/
DMyString.cpp213 const char *s1 = _chars; in IsPrefixedBy_Ascii_NoCase()
228 const wchar_t *s1 = _chars; in IsPrefixedBy_Ascii_NoCase()
386 memcpy(newBuf, _chars, (size_t)(_len + 1)); in ReAlloc()
387 MY_STRING_DELETE(_chars); in ReAlloc()
388 _chars = newBuf; in ReAlloc()
398 MY_STRING_DELETE(_chars); in ReAlloc2()
399 _chars = newBuf; in ReAlloc2()
405 _chars = 0; in SetStartLen()
406 _chars = MY_STRING_NEW_char(len + 1); in SetStartLen()
439 memcpy(_chars, s, num); in AString()
[all …]
DMyString.h247 char *_chars; variable
253 memmove(_chars + dest, _chars + src, (size_t)(_len - src + 1) * sizeof(char)); in MoveItems()
296 ~AString() { MY_STRING_DELETE(_chars); } in ~AString()
300 void Empty() { _len = 0; _chars[0] = 0; } in Empty()
302 operator const char *() const { return _chars; }
303 const char *Ptr() const { return _chars; } in Ptr()
304 const char *Ptr(unsigned pos) const { return _chars + pos; } in Ptr()
305 const char *RightPtr(unsigned num) const { return _chars + _len - num; } in RightPtr()
306 char Back() const { return _chars[(size_t)_len - 1]; } in Back()
308 void ReplaceOneCharAtPos(unsigned pos, char c) { _chars[pos] = c; } in ReplaceOneCharAtPos()
[all …]
/external/fonttools/Lib/fontTools/
DafmLib.py102 self._chars = {}
143 self._chars[charname] = charnum, width, (l, b, r, t)
222 lines.append("StartCharMetrics " + repr(len(self._chars)))
223 …items = [(charnum, (charname, width, box)) for charname, (charnum, width, box) in self._chars.item…
268 return char in self._chars
271 return list(self._chars.keys())
314 return self._chars[key]
322 self._chars[key] = value
330 del self._chars[key]