Home
last modified time | relevance | path

Searched refs:characters (Results 1 – 25 of 518) sorted by relevance

12345678910>>...21

/external/webkit/WebCore/platform/
DLinkHash.cpp34 static inline int findSlashDotDotSlash(const UChar* characters, size_t length) in findSlashDotDotSlash() argument
40 …if (characters[i] == '/' && characters[i + 1] == '.' && characters[i + 2] == '.' && characters[i +… in findSlashDotDotSlash()
46 static inline int findSlashSlash(const UChar* characters, size_t length, int position) in findSlashSlash() argument
52 if (characters[i] == '/' && characters[i + 1] == '/') in findSlashSlash()
58 static inline int findSlashDotSlash(const UChar* characters, size_t length) in findSlashDotSlash() argument
64 if (characters[i] == '/' && characters[i + 1] == '.' && characters[i + 2] == '/') in findSlashDotSlash()
70 static inline bool containsColonSlashSlash(const UChar* characters, unsigned length) in containsColonSlashSlash() argument
76 if (characters[i] == ':' && characters[i + 1] == '/' && characters[i + 2] == '/') in containsColonSlashSlash()
124 static inline bool needsTrailingSlash(const UChar* characters, unsigned length) in needsTrailingSlash() argument
128 if (!matchLetter(characters[0], 'h') in needsTrailingSlash()
[all …]
DLength.cpp89 const UChar* data = string.characters(); in newCoordsArray()
102 len = countCharacter(str->characters(), str->length(), ' ') + 1; in newCoordsArray()
110 r[i++] = parseLength(str->characters() + pos, pos2 - pos); in newCoordsArray()
113 r[i] = parseLength(str->characters() + pos, str->length() - pos); in newCoordsArray()
128 len = countCharacter(str->characters(), str->length(), ',') + 1; in newLengthArray()
136 r[i++] = parseLength(str->characters() + pos, pos2 - pos); in newLengthArray()
144 r[i] = parseLength(str->characters() + pos, str->length() - pos); in newLengthArray()
/external/webkit/WebCore/dom/
DClassNames.cpp32 const UChar* characters = string.characters(); in hasNonASCIIOrUpper() local
37 UChar c = characters[i]; in hasNonASCIIOrUpper()
52 const UChar* characters = m_string.characters(); in createVector() local
56 while (start < length && isClassWhitespace(characters[start])) in createVector()
61 while (end < length && !isClassWhitespace(characters[end])) in createVector()
64 m_vector.append(AtomicString(characters + start, end - start)); in createVector()
/external/webkit/WebCore/svg/
DSVGFontElement.cpp92 static unsigned parseUnicodeRange(const UChar* characters, unsigned length, pair<unsigned, unsigned… in parseUnicodeRange() argument
96 if (characters[0] != 'U') in parseUnicodeRange()
98 if (characters[1] != '+') in parseUnicodeRange()
105 if (!isASCIIHexDigit(characters[i])) in parseUnicodeRange()
109 start = (start << 4) | toASCIIHexValue(characters[i]); in parseUnicodeRange()
113 if (2 + startLength < length && characters[2 + startLength] == '-') { in parseUnicodeRange()
121 if (!isASCIIHexDigit(characters[i])) in parseUnicodeRange()
125 end = (end << 4) | toASCIIHexValue(characters[i]); in parseUnicodeRange()
139 if (characters[i] != '?') in parseUnicodeRange()
155 static bool parseUnicodeRangeList(const UChar* characters, unsigned length, Vector<pair<unsigned, u… in parseUnicodeRangeList() argument
[all …]
/external/webkit/WebCore/platform/text/
DTextCodecLatin1.cpp122 UChar* characters; in decode() local
123 String result = String::createUninitialized(length, characters); in decode()
129 characters[i] = c; in decode()
139 characters[i] = table[c]; in decode()
145 static CString encodeComplexWindowsLatin1(const UChar* characters, size_t length, UnencodableHandli… in encodeComplexWindowsLatin1() argument
153 U16_NEXT(characters, i, length, c); in encodeComplexWindowsLatin1()
177 CString TextCodecLatin1::encode(const UChar* characters, size_t length, UnencodableHandling handlin… in encode() argument
186 UChar c = characters[i]; in encode()
196 return encodeComplexWindowsLatin1(characters, length, handling); in encode()
DAtomicString.cpp57 const UChar* d = r->characters(); in equal()
75 if ((!impl || !impl->characters()) && !b) in operator ==()
77 if ((!impl || !impl->characters()) || !b) in operator ==()
99 static inline bool equal(StringImpl* string, const UChar* characters, unsigned length) in equal() argument
105 const UChar* stringCharacters = string->characters(); in equal()
107 if (*stringCharacters++ != *characters++) in equal()
114 const uint32_t* stringCharacters = reinterpret_cast<const uint32_t*>(string->characters()); in equal()
115 const uint32_t* bufferCharacters = reinterpret_cast<const uint32_t*>(characters); in equal()
149 const UChar* characters; member
156 ASSERT(buffer.hash == StringImpl::computeHash(buffer.characters, buffer.length)); in hash()
[all …]
DStringImpl.cpp96 inline StringImpl::StringImpl(const UChar* characters, unsigned length) in StringImpl() argument
102 memcpy(data, characters, length * sizeof(UChar)); in StringImpl()
118 inline StringImpl::StringImpl(const char* characters, unsigned length) in StringImpl() argument
123 ASSERT(characters); in StringImpl()
128 unsigned char c = characters[i]; in StringImpl()
134 inline StringImpl::StringImpl(UChar* characters, unsigned length, AdoptBuffer) in StringImpl() argument
136 , m_data(characters) in StringImpl()
140 ASSERT(characters); in StringImpl()
145 StringImpl::StringImpl(const UChar* characters, unsigned length, unsigned hash) in StringImpl() argument
151 ASSERT(characters); in StringImpl()
[all …]
DString.cpp92 memcpy(data, m_impl->characters(), m_impl->length() * sizeof(UChar)); in append()
93 memcpy(data + m_impl->length(), str.characters(), str.length() * sizeof(UChar)); in append()
110 memcpy(data, m_impl->characters(), m_impl->length() * sizeof(UChar)); in append()
127 memcpy(data, m_impl->characters(), m_impl->length() * sizeof(UChar)); in append()
164 insert(str.characters(), str.length(), pos); in insert()
183 memcpy(data, characters(), length() * sizeof(UChar)); in append()
204 memcpy(data, characters(), position * sizeof(UChar)); in insert()
206 …memcpy(data + position + lengthToInsert, characters() + position, (length() - position) * sizeof(U… in insert()
214 return m_impl->characters()[i]; in operator []()
237 memcpy(data, characters(), position * sizeof(UChar)); in truncate()
[all …]
DTextCodecUserDefined.cpp65 static CString encodeComplexUserDefined(const UChar* characters, size_t length, UnencodableHandling… in encodeComplexUserDefined() argument
73 U16_NEXT(characters, i, length, c); in encodeComplexUserDefined()
91 CString TextCodecUserDefined::encode(const UChar* characters, size_t length, UnencodableHandling ha… in encode() argument
99 UChar c = characters[i]; in encode()
108 return encodeComplexUserDefined(characters, length, handling); in encode()
DTextCodecUTF16.cpp77 UChar* q = buffer.characters(); in decode()
111 buffer.shrink(q - buffer.characters()); in decode()
116 CString TextCodecUTF16::encode(const UChar* characters, size_t length, UnencodableHandling) in encode() argument
125 UChar c = characters[i]; in encode()
131 UChar c = characters[i]; in encode()
DStringHash.h51 return memcmp(a->characters(), b->characters(), sizeof(UChar) * aLength) == 0; in equal()
53 const uint32_t* aChars = reinterpret_cast<const uint32_t*>(a->characters()); in equal()
54 const uint32_t* bChars = reinterpret_cast<const uint32_t*>(b->characters()); in equal()
130 return hash(str->characters(), str->length()); in hash()
187 return WTF::Unicode::umemcasecmp(a->characters(), b->characters(), length) == 0; in equal()
DPlatformString.h94 const UChar* characters() const;
310 inline bool charactersAreAllASCII(const UChar* characters, size_t length) in charactersAreAllASCII() argument
314 ored |= characters[i]; in charactersAreAllASCII()
318 inline int find(const UChar* characters, size_t length, UChar character, int startPosition) in find() argument
323 if (characters[i] == character) in find()
329 inline int find(const UChar* characters, size_t length, CharacterMatchFunctionPtr matchFunction, in… in find() argument
334 if (matchFunction(characters[i])) in find()
340 inline int reverseFind(const UChar* characters, size_t length, UChar character, int startPosition) in reverseFind() argument
347 if (characters[startPosition] == character) in reverseFind()
359 vector.append(string.characters(), string.length()); in append()
DTextEncoding.cpp66 : m_name(atomicCanonicalTextEncodingName(name.characters(), name.length())) in TextEncoding()
79 CString TextEncoding::encode(const UChar* characters, size_t length, UnencodableHandling handling) … in encode() argument
92 const UChar* source = characters; in encode()
114 QString str(reinterpret_cast<const QChar*>(characters), length); in encode()
120 return textCodec.get() ? textCodec->encode(characters, length, handling) : CString(); in encode()
/external/webkit/WebCore/platform/win/
DBString.cpp48 BString::BString(const wchar_t* characters) in BString() argument
50 if (!characters) in BString()
53 m_bstr = SysAllocString(characters); in BString()
56 BString::BString(const wchar_t* characters, size_t length) in BString() argument
58 if (!characters) in BString()
61 m_bstr = SysAllocStringLen(characters, length); in BString()
69 m_bstr = SysAllocStringLen(s.characters(), s.length()); in BString()
77 m_bstr = SysAllocStringLen(url.string().characters(), url.string().length()); in BString()
85 m_bstr = SysAllocStringLen(s.characters(), s.length()); in BString()
/external/webkit/WebCore/editing/
Dvisible_units.cpp46 static int endOfFirstWordBoundaryContext(const UChar* characters, int length) in endOfFirstWordBoundaryContext() argument
51 U16_NEXT(characters, i, length, ch); in endOfFirstWordBoundaryContext()
58 static int startOfLastWordBoundaryContext(const UChar* characters, int length) in startOfLastWordBoundaryContext() argument
63 U16_PREV(characters, 0, i, ch); in startOfLastWordBoundaryContext()
105 const UChar* characters = forwardsIterator.characters(); in previousBoundary() local
107 int i = endOfFirstWordBoundaryContext(characters, length); in previousBoundary()
108 string.append(characters, i); in previousBoundary()
130 string.prepend(it.characters(), it.length()); in previousBoundary()
133 String iteratorString(it.characters(), it.length()); in previousBoundary()
135 string.prepend(iteratorString.characters(), iteratorString.length()); in previousBoundary()
[all …]
DSmartReplaceICU.cpp42 const UChar* characters = string.characters(); in addAllCodePoints() local
44 uset_add(smartSet, characters[i]); in addAllCodePoints()
58 …smartSet = uset_openPattern(whitespaceAndNewline.characters(), whitespaceAndNewline.length(), &ec); in getSmartSet()
82 … USet* icuPunct = uset_openPattern(punctuationClass.characters(), punctuationClass.length(), &ec); in getSmartSet()
DTextIterator.h80 const UChar* characters() const { return m_textCharacters; } in characters() function
164 const UChar* characters() const { return m_textCharacters; } in characters() function
221 const UChar* characters() const { return m_textIterator.characters() + m_runOffset; } in characters() function
265 const UChar* characters() const;
/external/webkit/WebCore/css/
DFontFamilyValue.cpp33 const UChar* characters = string.characters(); in isValidCSSIdentifier() local
34 UChar c = characters[0]; in isValidCSSIdentifier()
39 c = characters[i]; in isValidCSSIdentifier()
96 void FontFamilyValue::appendSpaceSeparated(const UChar* characters, unsigned length) in appendSpaceSeparated() argument
99 m_familyName.append(characters, length); in appendSpaceSeparated()
DCSSParserValues.h31 UChar* characters; member
36 operator String() const { return String(characters, length); } in String()
37 operator AtomicString() const { return AtomicString(characters, length); } in AtomicString()
/external/webkit/WebCore/loader/appcache/
DManifestParser.cpp59 const UChar* end = s.characters() + s.length(); in parseManifest()
60 const UChar* p = s.characters() + 14; // "CACHE MANIFEST" is 14 characters. in parseManifest()
105 const UChar* p = line.characters(); in parseManifest()
112 KURL url(manifestURL, String(line.characters(), p - line.characters())); in parseManifest()
129 const UChar* p = line.characters(); in parseManifest()
141 KURL namespaceURL(manifestURL, String(line.characters(), p - line.characters())); in parseManifest()
/external/webkit/WebCore/platform/graphics/
DStringTruncator.cpp65 TextBreakIterator* it = characterBreakIterator(string.characters(), length); in centerTruncateToBuffer()
72 memcpy(buffer, string.characters(), sizeof(UChar) * omitStart); in centerTruncateToBuffer()
74 … memcpy(&buffer[omitStart + 1], &string.characters()[omitEnd], sizeof(UChar) * (length - omitEnd)); in centerTruncateToBuffer()
84 TextBreakIterator* it = characterBreakIterator(string.characters(), length); in rightTruncateToBuffer()
88 memcpy(buffer, string.characters(), sizeof(UChar) * keepLength); in rightTruncateToBuffer()
94 static float stringWidth(const Font& renderer, const UChar* characters, unsigned length, bool disab… in stringWidth() argument
96 TextRun run(characters, length); in stringWidth()
121 memcpy(stringBuffer, string.characters(), sizeof(UChar) * length); in truncateString()
195 return stringWidth(font, string.characters(), string.length(), disableRoundingHacks); in width()
/external/webkit/JavaScriptCore/API/
DOpaqueJSString.h43 static PassRefPtr<OpaqueJSString> create(const UChar* characters, unsigned length) in create()
45 return adoptRef(new OpaqueJSString(characters, length)); in create()
50 UChar* characters() { return this ? m_characters : 0; } in characters() function
65 OpaqueJSString(const UChar* characters, unsigned length) in OpaqueJSString()
69 memcpy(m_characters, characters, length * sizeof(UChar)); in OpaqueJSString()
DJSStringRef.cpp75 return string->characters(); in JSStringGetCharactersPtr()
90 const UChar* d = string->characters(); in JSStringGetUTF8CString()
102 return len == b->length() && 0 == memcmp(a->characters(), b->characters(), len * sizeof(UChar)); in JSStringIsEqual()
/external/webkit/WebCore/wml/
DWMLVariables.cpp70 const UChar* characters = name.characters(); in isValidVariableName() local
71 if (!isValidFirstVariableNameCharacter(characters[0])) in isValidVariableName()
76 if (!isValidVariableNameCharacter(characters[i])) in isValidVariableName()
89 const UChar* characters = text.characters(); in containsVariableReference() local
104 if (characters[nameStartPosition] == '(') { in containsVariableReference()
/external/webkit/WebKit/mac/Plugins/
DWebNetscapePluginEventHandlerCocoa.mm151 event.data.key.characters = 0;
161 …RetainPtr<NSString> characters(AdoptNS, [[NSString alloc] initWithUTF8String:nullTerminatedString]…
168 event.data.key.characters = (NPNSString *)characters.get();
169 event.data.key.charactersIgnoringModifiers = (NPNSString *)characters.get();
182 event.data.key.characters = (NPNSString *)[nsEvent characters];
282 Vector<UniChar, 16> characters(length);
285 …tParameter(eventRef, kEventParamTextInputSendText, typeUnicodeText, 0, size, 0, characters.data());
289 … RetainPtr<CFStringRef> text(AdoptCF, CFStringCreateWithCharacters(0, characters.data(), length));

12345678910>>...21