Home
last modified time | relevance | path

Searched refs:LChar (Results 1 – 25 of 108) 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);
207 …efPtr<StringImpl> reallocate(PassRefPtr<StringImpl> originalString, unsigned length, LChar*& data);
222 …ALWAYS_INLINE const LChar* characters8() const { ASSERT(is8Bit()); return reinterpret_cast<const L… in characters8()
325 …ALWAYS_INLINE static void copyChars(UChar* destination, const LChar* source, unsigned numCharacter… in copyChars()
385 size_t find(LChar character, unsigned start = 0);
389 size_t find(const LChar*, unsigned index = 0);
[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) : 0) in String()
72 String::String(const LChar* characters) in String()
78 : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters)) : 0) 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 …]
DStringBuilder.cpp116 void StringBuilder::allocateBuffer(const LChar* currentCharacters, unsigned requiredLength) in allocateBuffer()
121 …memcpy(m_bufferCharacters8, currentCharacters, static_cast<size_t>(m_length) * sizeof(LChar)); // … in allocateBuffer()
144 void StringBuilder::allocateBufferUpConvert(const LChar* currentCharacters, unsigned requiredLength) in allocateBufferUpConvert()
160 void StringBuilder::reallocateBuffer<LChar>(unsigned requiredLength) in reallocateBuffer()
196 reallocateBuffer<LChar>(newCapacity); in reserveCapacity()
204 LChar* nullPlaceholder = 0; in reserveCapacity()
269 LChar lChar = static_cast<LChar>(*characters); in append()
294 void StringBuilder::append(const LChar* characters, unsigned length) in append()
301 LChar* dest = appendUninitialized<LChar>(length); in append()
303 memcpy(dest, characters, static_cast<size_t>(length) * sizeof(LChar)); 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.h45 AtomicString(const LChar* s) : m_string(add(s)) { } in AtomicString()
47 AtomicString(const LChar* s, unsigned length) : m_string(add(s, length)) { } in AtomicString()
73 …COMPILE_ASSERT((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl)) / sizeof(LChar))), Ato… in AtomicString()
99 const LChar* characters8() const { return m_string.characters8(); } in characters8()
106 bool contains(const LChar* s, bool caseSensitive = true) const
112 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.cpp285 PassRefPtr<StringImpl> StringImpl::createUninitialized(unsigned length, LChar*& data) in createUninitialized()
295 …SE_ASSERT(length <= ((std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(LChar))); in createUninitialized()
296 size_t size = sizeof(StringImpl) + length * sizeof(LChar); in createUninitialized()
299 data = reinterpret_cast<LChar*>(string + 1); in createUninitialized()
321 …gImpl> StringImpl::reallocate(PassRefPtr<StringImpl> originalString, unsigned length, LChar*& data) in reallocate()
332 …SE_ASSERT(length <= ((std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(LChar))); in reallocate()
333 size_t size = sizeof(StringImpl) + length * sizeof(LChar); in reallocate()
337 data = reinterpret_cast<LChar*>(string + 1); in reallocate()
395 ASSERT(!memcmp(string, it->value + 1, length * sizeof(LChar))); in createStatic()
402 …SE_ASSERT(length <= ((std::numeric_limits<unsigned>::max() - sizeof(StringImpl)) / sizeof(LChar))); in createStatic()
[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()
240 const LChar* characters8() const in characters8()
283 void allocateBuffer(const LChar* currentCharacters, unsigned requiredLength);
285 void allocateBufferUpConvert(const LChar* currentCharacters, unsigned requiredLength);
300 LChar* m_bufferCharacters8;
308 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()
DAtomicString.cpp124 static unsigned hash(const LChar* c) in hash()
129 static inline bool equal(StringImpl* r, const LChar* s) in equal()
134 static void translate(StringImpl*& location, const LChar* const& c, unsigned hash) in translate()
142 PassRefPtr<StringImpl> AtomicString::add(const LChar* c) in add()
149 return addToStringTable<const LChar*, CStringTranslator>(c); in add()
227 const LChar* characters8 = string->characters8(); in equal()
235 const LChar* stringCharacters = string->characters8(); in equal()
364 typedef HashTranslatorCharBuffer<LChar> LCharBuffer;
388 …return StringHasher::computeHashAndMaskTop8Bits(reinterpret_cast<const LChar*>(buf.s), buf.length); in hash()
404 PassRefPtr<StringImpl> AtomicString::add(const LChar* s, unsigned length) in add()
[all …]
/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()
DDecimalNumber.cpp99 unsigned DecimalNumber::toStringDecimal(LChar* buffer, unsigned bufferLength) const in toStringDecimal()
105 LChar* next = buffer; in toStringDecimal()
155 unsigned DecimalNumber::toStringExponential(LChar* buffer, unsigned bufferLength) const in toStringExponential()
161 LChar* next = buffer; in toStringExponential()
/external/chromium_org/third_party/WebKit/Source/core/svg/
DSVGParserUtilities.cpp155 template bool parseSVGNumber(LChar* begin, size_t length, double&);
158 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip) in parseNumber()
173 const LChar* ptr = string.characters8(); in parseNumberFromString()
174 const LChar* end = ptr + string.length(); in parseNumberFromString()
202 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag) in parseArcFlag()
231 const LChar* ptr = string.characters8(); in parseNumberOptionalNumber()
232 const LChar* end = ptr + string.length(); in parseNumberOptionalNumber()
259 const LChar* ptr = string.characters8(); in parseRect()
260 const LChar* end = ptr + string.length(); in parseRect()
303 const LChar* ptr = points.characters8(); in pointsListFromSVGData()
[all …]
DSVGParserUtilities.h41 bool parseNumber(const LChar*& ptr, const LChar* end, float& number, bool skip = true);
45 bool parseArcFlag(const LChar*& ptr, const LChar* end, bool& flag);
96 bool parseTransformAttribute(SVGTransformList&, const LChar*& ptr, const LChar* end, TransformParsi…
99 bool parseTransformValue(unsigned type, const LChar*& ptr, const LChar* end, SVGTransform&);
DSVGFitToViewBox.cpp74 bool SVGFitToViewBox::parseViewBox(Document* document, const LChar*& ptr, const LChar* end, FloatRe… in parseViewBox()
87 const LChar* ptr = 0; in parseViewBox()
88 return parseViewBoxInternal<LChar>(document, ptr, ptr, viewBox, true); in parseViewBox()
91 const LChar* ptr = string.characters8(); in parseViewBox()
92 const LChar* end = ptr + string.length(); in parseViewBox()
DSVGZoomAndPan.cpp39 static const LChar disable[] = {'d', 'i', 's', 'a', 'b', 'l', 'e'};
40 static const LChar magnify[] = {'m', 'a', 'g', 'n', 'i', 'f', 'y'};
56 bool SVGZoomAndPan::parseZoomAndPan(const LChar*& start, const LChar* end, SVGZoomAndPanType& zoomA… in parseZoomAndPan()
DSVGViewSpec.cpp200 static const LChar svgViewSpec[] = {'s', 'v', 'g', 'V', 'i', 'e', 'w'};
201 static const LChar viewBoxSpec[] = {'v', 'i', 'e', 'w', 'B', 'o', 'x'};
202 static const LChar preserveAspectRatioSpec[] = {'p', 'r', 'e', 's', 'e', 'r', 'v', 'e', 'A', 's', '…
203 static const LChar transformSpec[] = {'t', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm'};
204 static const LChar zoomAndPanSpec[] = {'z', 'o', 'o', 'm', 'A', 'n', 'd', 'P', 'a', 'n'};
205 static const LChar viewTargetSpec[] = {'v', 'i', 'e', 'w', 'T', 'a', 'r', 'g', 'e', 't'};
294 const LChar* ptr = spec.characters8(); in parseViewSpec()
295 const LChar* end = ptr + spec.length(); in parseViewSpec()
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLTokenizer.cpp70 static inline bool vectorEqualsString(const Vector<LChar, 32>& vector, const String& string) in vectorEqualsString() argument
335 m_token->beginEndTag(static_cast<LChar>(toLowerCase(cc))); in nextToken()
339 m_token->beginEndTag(static_cast<LChar>(cc)); in nextToken()
391 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
392 addToPossibleEndTag(static_cast<LChar>(toLowerCase(cc))); in nextToken()
395 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
396 addToPossibleEndTag(static_cast<LChar>(cc)); in nextToken()
408 m_temporaryBuffer.append(static_cast<LChar>(cc)); in nextToken()
409 addToPossibleEndTag(static_cast<LChar>(toLowerCase(cc))); in nextToken()
412 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.h156 OwnPtr<LChar[]> m_dataStart8;
158 LChar* m_currentCharacter8;
161 LChar* ptr8;
184 inline LChar* CSSTokenizer::tokenStart<LChar>()

12345