Home
last modified time | relevance | path

Searched refs:LChar (Results 1 – 25 of 115) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/wtf/text/
DStringConcatenate.h59 void writeTo(LChar* destination) in writeTo()
71 class StringTypeAdapter<LChar> {
73 StringTypeAdapter<LChar>(LChar buffer)
82 void writeTo(LChar* destination) in writeTo()
90 LChar m_buffer;
105 void writeTo(LChar* destination) in writeTo()
108 *destination = static_cast<LChar>(m_buffer); in writeTo()
130 void writeTo(LChar* destination) in writeTo()
133 destination[i] = static_cast<LChar>(m_buffer[i]); in writeTo()
150 class StringTypeAdapter<LChar*> {
[all …]
DStringImpl.h190 static PassRefPtr<StringImpl> create(const LChar*, unsigned length);
198 …reate(const char* s, unsigned length) { return create(reinterpret_cast<const LChar*>(s), length); } in create()
199 static PassRefPtr<StringImpl> create(const LChar*);
200 … PassRefPtr<StringImpl> create(const char* s) { return create(reinterpret_cast<const LChar*>(s)); } in create()
202 static PassRefPtr<StringImpl> createUninitialized(unsigned length, LChar*& data);
221 …ALWAYS_INLINE const LChar* characters8() const { ASSERT(is8Bit()); return reinterpret_cast<const L… in characters8()
301 …ALWAYS_INLINE static void copyChars(UChar* destination, const LChar* source, unsigned numCharacter… in copyChars()
361 size_t find(LChar character, unsigned start = 0);
365 size_t find(const LChar*, unsigned index = 0);
366 … find(const char* s, unsigned index = 0) { return find(reinterpret_cast<const LChar*>(s), index); }
[all …]
DStringBuilder.cpp117 void StringBuilder::allocateBuffer(const LChar* currentCharacters, unsigned requiredLength) in allocateBuffer()
122 …memcpy(m_bufferCharacters8, currentCharacters, static_cast<size_t>(m_length) * sizeof(LChar)); // … in allocateBuffer()
145 void StringBuilder::allocateBufferUpConvert(const LChar* currentCharacters, unsigned requiredLength) in allocateBufferUpConvert()
161 void StringBuilder::reallocateBuffer<LChar>(unsigned requiredLength) in reallocateBuffer()
172 m_bufferCharacters8 = const_cast<LChar*>(m_buffer->characters8()); in reallocateBuffer()
199 reallocateBuffer<LChar>(newCapacity); in reserveCapacity()
207 LChar* nullPlaceholder = 0; in reserveCapacity()
272 LChar lChar = static_cast<LChar>(*characters); in append()
297 void StringBuilder::append(const LChar* characters, unsigned length) in append()
304 LChar* dest = appendUninitialized<LChar>(length); in append()
[all …]
DWTFString.h45 WTF_EXPORT int charactersToIntStrict(const LChar*, size_t, bool* ok = 0, int base = 10);
47 WTF_EXPORT unsigned charactersToUIntStrict(const LChar*, size_t, bool* ok = 0, int base = 10);
49 WTF_EXPORT int64_t charactersToInt64Strict(const LChar*, size_t, bool* ok = 0, int base = 10);
51 WTF_EXPORT uint64_t charactersToUInt64Strict(const LChar*, size_t, bool* ok = 0, int base = 10);
53 WTF_EXPORT intptr_t charactersToIntPtrStrict(const LChar*, size_t, bool* ok = 0, int base = 10);
56 WTF_EXPORT int charactersToInt(const LChar*, size_t, bool* ok = 0); // ignores trailing garbage
58 WTF_EXPORT unsigned charactersToUInt(const LChar*, size_t, bool* ok = 0); // ignores trailing garba…
60 WTF_EXPORT int64_t charactersToInt64(const LChar*, size_t, bool* ok = 0); // ignores trailing garba…
62 WTF_EXPORT uint64_t charactersToUInt64(const LChar*, size_t, bool* ok = 0); // ignores trailing gar…
64 WTF_EXPORT intptr_t charactersToIntPtr(const LChar*, size_t, bool* ok = 0); // ignores trailing gar…
[all …]
DWTFString.cpp61 String::String(const LChar* characters, unsigned length) in String()
67 …: m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters), length) : nul… in String()
72 String::String(const LChar* characters) in String()
78 : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters)) : nullptr) in String()
97 LChar* data; in append()
100 memcpy(data, m_impl->characters8(), m_impl->length() * sizeof(LChar)); in append()
101 memcpy(data + m_impl->length(), string.characters8(), string.length() * sizeof(LChar)); in append()
146 void String::append(LChar c) in append()
177 void String::append(const LChar* charactersToAppend, unsigned lengthToAppend) in append()
195 LChar* data; in append()
[all …]
DASCIIFastPath.h56 template<> struct NonASCIIMask<4, LChar> {
62 template<> struct NonASCIIMask<8, LChar> {
105 inline void copyLCharsFromUCharSource(LChar* destination, const UChar* source, size_t length)
114 destination[i] = static_cast<LChar>(source[i]);
135 destination[i] = static_cast<LChar>(source[i]);
138 const LChar* const end = destination + length;
145 *destination++ = static_cast<LChar>(*source++);
149 const LChar* const simdEnd = end - (lengthLeft % memoryAccessSize);
160 *destination++ = static_cast<LChar>(*source++);
164 destination[i] = static_cast<LChar>(source[i]);
DAtomicString.h38 AtomicString(const LChar* s) : m_string(add(s)) { } in AtomicString()
40 AtomicString(const LChar* s, unsigned length) : m_string(add(s, length)) { } in AtomicString()
69 …COMPILE_ASSERT((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl)) / sizeof(LChar))), Ato… in AtomicString()
95 const LChar* characters8() const { return m_string.characters8(); } in characters8()
102 bool contains(const LChar* s, bool caseSensitive = true) const
108 size_t find(const LChar* s, size_t start = 0, bool caseSentitive = true) const
174 static PassRefPtr<StringImpl> add(const LChar*);
175 …tatic PassRefPtr<StringImpl> add(const char* s) { return add(reinterpret_cast<const LChar*>(s)); }; in add()
176 static PassRefPtr<StringImpl> add(const LChar*, unsigned length);
178 …pl> add(const char* s, unsigned length) { return add(reinterpret_cast<const LChar*>(s), length); }; in add()
[all …]
DStringImpl.cpp289 PassRefPtr<StringImpl> StringImpl::createUninitialized(unsigned length, LChar*& data) in createUninitialized()
299 …ringImpl*>(partitionAllocGeneric(Partitions::getBufferPartition(), allocationSize<LChar>(length))); in createUninitialized()
301 data = reinterpret_cast<LChar*>(string + 1); in createUninitialized()
330 size_t size = is8Bit ? allocationSize<LChar>(length) : allocationSize<UChar>(length); in reallocate()
372 ASSERT(!memcmp(string, it->value + 1, length * sizeof(LChar))); in createStatic()
379 …SE_ASSERT(length <= ((std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(LChar))); in createStatic()
380 size_t size = sizeof(StringImpl) + length * sizeof(LChar); in createStatic()
385 LChar* data = reinterpret_cast<LChar*>(impl + 1); in createStatic()
387 memcpy(data, string, length * sizeof(LChar)); in createStatic()
412 PassRefPtr<StringImpl> StringImpl::create(const LChar* characters, unsigned length) in create()
[all …]
DIntegerToStringConversion.h40 …static inline ReturnType flush(LChar* characters, unsigned length, void*) { return StringImpl::cre…
45 …static inline ReturnType flush(LChar* characters, unsigned length, StringBuilder* stringBuilder) {…
50 …static inline ReturnType flush(LChar* characters, unsigned length, void*) { return AtomicString(ch…
68 LChar buf[sizeof(UnsignedIntegerType) * 3 + 1];
69 LChar* end = buf + WTF_ARRAY_LENGTH(buf);
70 LChar* p = end;
73 *--p = static_cast<LChar>((number % 10) + '0');
DStringBuilder.h49 void append(const LChar*, unsigned);
51 …(const char* characters, unsigned length) { append(reinterpret_cast<const LChar*>(characters), len… in append()
133 m_bufferCharacters8[m_length++] = static_cast<LChar>(c); in append()
140 void append(LChar c) in append()
153 append(static_cast<LChar>(c)); in append()
241 const LChar* characters8() const in characters8()
284 void allocateBuffer(const LChar* currentCharacters, unsigned requiredLength);
286 void allocateBufferUpConvert(const LChar* currentCharacters, unsigned requiredLength);
301 LChar* m_bufferCharacters8;
309 ALWAYS_INLINE LChar* StringBuilder::getBufferCharacters<LChar>()
[all …]
DTextCodecLatin1.cpp123 LChar* characters; in decode()
131 LChar* destination = characters; in decode()
140 if (!isAllASCII<LChar>(chunk)) in decode()
173 LChar* ptr8 = characters; in decode()
174 LChar* endPtr8 = destination; in decode()
191 if (!isAllASCII<LChar>(chunk)) in decode()
276 CString TextCodecLatin1::encode(const LChar* characters, size_t length, UnencodableHandling handlin… in encode()
DTextCodecUTF8.cpp175 bool TextCodecUTF8::handlePartialSequence<LChar>(LChar*& destination, const uint8_t*& source, const… in handlePartialSequence()
273 StringBuffer<LChar> buffer(m_partialSequenceSize + length); in decode()
278 LChar* destination = buffer.characters(); in decode()
285 LChar* destinationForHandlePartialSequence = destination; in decode()
303 if (!isAllASCII<LChar>(chunk)) in decode()
357 for (LChar* converted8 = buffer.characters(); converted8 < destination;) in decode()
380 if (!isAllASCII<LChar>(chunk)) in decode()
458 CString TextCodecUTF8::encode(const LChar* characters, size_t length, UnencodableHandling) in encode()
DTextCodecASCIIFastPath.h36 static void copy(LChar* destination, const uint8_t* source)
50 static void copy(LChar* destination, const uint8_t* source)
68 inline void copyASCIIMachineWord(LChar* destination, const uint8_t* source)
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGParserUtilities.cpp157 template bool parseSVGNumber(LChar* begin, size_t length, double&);
160 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, WhitespaceMode mode) in parseNumber()
190 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag) in parseArcFlag()
220 const LChar* ptr = string.characters8(); in parseNumberOptionalNumber()
221 const LChar* end = ptr + string.length(); in parseNumberOptionalNumber()
257 const LChar* ptr = string.characters8(); in parseNumberOrPercentage()
258 const LChar* end = ptr + string.length(); in parseNumberOrPercentage()
299 const LChar* ptr = input.characters8(); in parseGlyphName()
300 const LChar* end = ptr + input.length(); in parseGlyphName()
407 const LChar* ptr = input.characters8(); in parseKerningUnicodeString()
[all …]
DSVGViewSpec.cpp57 const LChar* ptr = spec.characters8(); in parseViewSpec()
58 const LChar* end = ptr + spec.length(); in parseViewSpec()
125 static const LChar svgViewSpec[] = {'s', 'v', 'g', 'V', 'i', 'e', 'w'};
126 static const LChar viewBoxSpec[] = {'v', 'i', 'e', 'w', 'B', 'o', 'x'};
127 static const LChar preserveAspectRatioSpec[] = {'p', 'r', 'e', 's', 'e', 'r', 'v', 'e', 'A', 's', '…
128 static const LChar transformSpec[] = {'t', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm'};
129 static const LChar zoomAndPanSpec[] = {'z', 'o', 'o', 'm', 'A', 'n', 'd', 'P', 'a', 'n'};
130 static const LChar viewTargetSpec[] = {'v', 'i', 'e', 'w', 'T', 'a', 'r', 'g', 'e', 't'};
DSVGZoomAndPan.cpp49 static const LChar disable[] = {'d', 'i', 's', 'a', 'b', 'l', 'e'};
50 static const LChar magnify[] = {'m', 'a', 'g', 'n', 'i', 'f', 'y'};
66 bool SVGZoomAndPan::parseZoomAndPan(const LChar*& start, const LChar* end) in parseZoomAndPan()
DSVGParserUtilities.h46 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, WhitespaceMode = AllowLeadingA…
50 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag);
DSVGZoomAndPan.h60 bool parseZoomAndPan(const LChar*& start, const LChar* end);
69 const LChar* start = value.characters8(); in parseAttribute()
/external/chromium_org/third_party/WebKit/Source/wtf/
DHexNumber.h34 const LChar lowerHexDigits[17] = "0123456789abcdef";
35 const LChar upperHexDigits[17] = "0123456789ABCDEF";
36 inline const LChar* hexDigitsForMode(HexConversionMode mode) in hexDigitsForMode()
46 const LChar* hexDigits = Internal::hexDigitsForMode(mode);
54 const LChar* hexDigits = Internal::hexDigitsForMode(mode);
63 const LChar* hexDigits = Internal::hexDigitsForMode(mode);
71 const LChar* hexDigits = Internal::hexDigitsForMode(mode);
72 Vector<LChar, 8> result;
87 const LChar* hexDigits = Internal::hexDigitsForMode(mode);
88 Vector<LChar, 8> result;
Ddtoa.h44 typedef LChar NumberToLStringBuffer[NumberToStringBufferLength];
50 WTF_EXPORT double parseDouble(const LChar* string, size_t length, size_t& parsedLength);
57 inline double parseDouble(const LChar* string, size_t length, size_t& parsedLength) in parseDouble()
67 LChar conversionBuffer[conversionBufferSize]; in parseDouble()
/external/chromium_org/third_party/WebKit/Source/core/html/track/vtt/
DVTTScanner.h54 typedef const LChar* Position;
82 bool scan(const LChar* characters, size_t charactersCount);
141 static inline bool LCharPredicateAdapter(LChar c) { return characterPredicate(c); } in LCharPredicateAdapter()
143 const LChar* characters8;
147 const LChar* characters8;
163 return scan(reinterpret_cast<const LChar*>(characters), charactersCount - 1); in scan()
170 …::skipWhile<LChar, LCharPredicateAdapter<characterPredicate> >(m_data.characters8, m_end.character… in skipWhile()
179 …::skipUntil<LChar, LCharPredicateAdapter<characterPredicate> >(m_data.characters8, m_end.character… in skipUntil()
188 const LChar* current = m_data.characters8; in collectWhile()
189 ::skipWhile<LChar, LCharPredicateAdapter<characterPredicate> >(current, m_end.characters8); in collectWhile()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLTokenizer.cpp74 static inline bool vectorEqualsString(const Vector<LChar, 32>& vector, const String& string) in vectorEqualsString() argument
339 m_token->beginEndTag(static_cast<LChar>(toLowerCase(cc))); in nextToken()
343 m_token->beginEndTag(static_cast<LChar>(cc)); in nextToken()
395 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
396 addToPossibleEndTag(static_cast<LChar>(toLowerCase(cc))); in nextToken()
399 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
400 addToPossibleEndTag(static_cast<LChar>(cc)); in nextToken()
412 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
413 addToPossibleEndTag(static_cast<LChar>(toLowerCase(cc))); in nextToken()
416 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
[all …]
/external/chromium_org/third_party/WebKit/Source/wtf/unicode/
DUTF8.h71 const LChar** sourceStart, const LChar* sourceEnd,
81 …WTF_EXPORT bool equalLatin1WithUTF8(const LChar* a, const LChar* aEnd, const char* b, const char* …
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
DLatin1TextIterator.h33 …Latin1TextIterator(const LChar* characters, int currentCharacter, int lastCharacter, int /*endChar… in Latin1TextIterator()
57 const LChar* characters() const { return m_characters; } in characters()
60 const LChar* m_characters;
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSTokenizer.h158 OwnPtr<LChar[]> m_dataStart8;
160 LChar* m_currentCharacter8;
170 LChar* ptr8;
193 inline LChar* CSSTokenizer::tokenStart<LChar>()

12345