Home
last modified time | relevance | path

Searched refs:StringImpl (Results 1 – 25 of 124) sorted by relevance

12345

/external/chromium_org/third_party/WebKit/Source/wtf/text/
DStringImpl.h61 typedef HashMap<unsigned, StringImpl*, AlreadyHashed> StaticStringsTable;
82 void removeString(StringImpl*);
95 void addStringForStats(StringImpl*);
96 void removeStringForStats(StringImpl*);
98 #define STRING_STATS_ADD_8BIT_STRING(length) StringImpl::stringStats().add8BitString(length); addSt…
99 #define STRING_STATS_ADD_16BIT_STRING(length) StringImpl::stringStats().add16BitString(length); add…
100 #define STRING_STATS_REMOVE_STRING(string) StringImpl::stringStats().removeString(string); removeSt…
109 class WTF_EXPORT StringImpl {
110 WTF_MAKE_NONCOPYABLE(StringImpl);
129 explicit StringImpl(ConstructEmptyStringTag) in StringImpl() function
[all …]
DAtomicString.cpp50 StringImpl* addStringImpl(StringImpl* string) in addStringImpl()
53 return StringImpl::empty(); in addStringImpl()
55 StringImpl* result = *m_table.add(string).storedValue; in addStringImpl()
64 HashSet<StringImpl*>& table() in table()
74 const StaticStringsTable& staticStrings = StringImpl::allStaticStrings(); in addStaticStrings()
84 HashSet<StringImpl*>::iterator end = table->m_table.end(); in destroy()
85 for (HashSet<StringImpl*>::iterator iter = table->m_table.begin(); iter != end; ++iter) { in destroy()
86 StringImpl* string = *iter; in destroy()
95 HashSet<StringImpl*> m_table;
108 static inline HashSet<StringImpl*>& atomicStrings() in atomicStrings()
[all …]
DStringImpl.cpp59 COMPILE_ASSERT(sizeof(StringImpl) == 3 * sizeof(int), StringImpl_should_stay_small);
76 void addStringForStats(StringImpl* string) in addStringForStats()
82 void removeStringForStats(StringImpl* string) in removeStringForStats()
88 static void fillWithSnippet(const StringImpl* string, Vector<char>& snippet) in fillWithSnippet()
115 static bool isUnnecessarilyWide(const StringImpl* string) in isUnnecessarilyWide()
132 void add(const StringImpl* string) in add()
192 HashMap<StringImpl*, RefPtr<PerStringStats> > stats; in printLiveStringStats()
194 StringImpl* string = static_cast<StringImpl*>(*iter); in printLiveStringStats()
195 HashMap<StringImpl*, RefPtr<PerStringStats> >::iterator entry = stats.find(string); in printLiveStringStats()
202 …for (HashMap<StringImpl*, RefPtr<PerStringStats> >::iterator iter = stats.begin(); iter != stats.e… in printLiveStringStats()
[all …]
DStringImplCF.cpp36 static StringImpl* currentString;
56 StringImpl* underlyingString = 0; in allocate()
64 StringImpl** header = static_cast<StringImpl**>(fastMalloc(sizeof(StringImpl*) + size)); in allocate()
71 size_t newAllocationSize = sizeof(StringImpl*) + newSize; in reallocate()
72 StringImpl** header = static_cast<StringImpl**>(pointer) - 1; in reallocate()
74 header = static_cast<StringImpl**>(fastRealloc(header, newAllocationSize)); in reallocate()
80 StringImpl** header = static_cast<StringImpl**>(headerPointer); in deallocateOnMainThread()
81 StringImpl* underlyingString = *header; in deallocateOnMainThread()
89 StringImpl** header = static_cast<StringImpl**>(pointer) - 1; in deallocate()
90 StringImpl* underlyingString = *header; in deallocate()
[all …]
DStringHash.h45 static unsigned hash(StringImpl* key) { return key->hash(); } in hash()
46 static inline bool equal(const StringImpl* a, const StringImpl* b) in equal()
51 static unsigned hash(const RefPtr<StringImpl>& key) { return key->hash(); } in hash()
52 static bool equal(const RefPtr<StringImpl>& a, const RefPtr<StringImpl>& b) in equal()
78 static unsigned hash(StringImpl* str) in hash()
95 static inline bool equal(const StringImpl* a, const StringImpl* b) in equal()
100 static unsigned hash(const RefPtr<StringImpl>& key) in hash()
105 static bool equal(const RefPtr<StringImpl>& a, const RefPtr<StringImpl>& b) in equal()
DWTFString.cpp48 : m_impl(characters ? StringImpl::create(characters, length) : nullptr) in String()
57 m_impl = StringImpl::create(str, lengthOfNullTerminatedString(str)); in String()
62 : m_impl(characters ? StringImpl::create(characters, length) : nullptr) in String()
67 …: m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters), length) : nul… in String()
73 : m_impl(characters ? StringImpl::create(characters) : nullptr) in String()
78 : m_impl(characters ? StringImpl::create(reinterpret_cast<const LChar*>(characters)) : nullptr) in String()
99 …RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + string.length(), d… in append()
108 …RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(m_impl->length() + string.length(), d… in append()
111 StringImpl::copyChars(data, m_impl->characters8(), m_impl->length()); in append()
113 StringImpl::copyChars(data, m_impl->characters16(), m_impl->length()); in append()
[all …]
DAtomicString.h53 explicit AtomicString(StringImpl* impl) : m_string(add(impl)) { } in AtomicString()
56 …AtomicString(StringImpl* baseString, unsigned start, unsigned length) : m_string(add(baseString, s… in AtomicString()
69 …COMPILE_ASSERT((charactersCount - 1 <= ((unsigned(~0) - sizeof(StringImpl)) / sizeof(LChar))), Ato… in AtomicString()
87 static StringImpl* find(const StringImpl*);
92 StringImpl* impl() const { return m_string.impl(); } in impl()
149 static void remove(StringImpl*);
174 static PassRefPtr<StringImpl> add(const LChar*);
175 …ALWAYS_INLINE static PassRefPtr<StringImpl> add(const char* s) { return add(reinterpret_cast<const… in add()
176 static PassRefPtr<StringImpl> add(const LChar*, unsigned length);
177 static PassRefPtr<StringImpl> add(const UChar*, unsigned length);
[all …]
DStringView.h46 explicit StringView(PassRefPtr<StringImpl> impl) in StringView()
53 StringView(PassRefPtr<StringImpl> impl, unsigned offset, unsigned length) in StringView()
89 PassRefPtr<StringImpl> toString() const in toString()
94 return StringImpl::create(characters8(), m_length); in toString()
95 return StringImpl::create(characters16(), m_length); in toString()
99 RefPtr<StringImpl> m_impl;
DStringBuffer.h47 m_data = StringImpl::createUninitialized(length, characters); in StringBuffer()
65 m_data = StringImpl::createUninitialized(newLength, characters); in resize()
69 m_data = StringImpl::reallocate(m_data.release(), newLength); in resize()
80 PassRefPtr<StringImpl> release() { return m_data.release(); } in release()
83 RefPtr<StringImpl> m_data;
DStringStatics.cpp42 StringImpl* StringImpl::empty() in empty()
44 DEFINE_STATIC_LOCAL(StringImpl, emptyString, (ConstructEmptyString)); in empty()
61 NEVER_INLINE unsigned StringImpl::hashSlowCase() const in DEFINE_GLOBAL()
DStringBuilder.cpp50 m_string = StringImpl::empty(); in reifyString()
103 RefPtr<StringImpl> string = m_string.releaseImpl(); in resize()
121 … RefPtr<StringImpl> buffer = StringImpl::createUninitialized(requiredLength, m_bufferCharacters8); in allocateBuffer()
135 … RefPtr<StringImpl> buffer = StringImpl::createUninitialized(requiredLength, m_bufferCharacters16); in allocateBuffer()
149 … RefPtr<StringImpl> buffer = StringImpl::createUninitialized(requiredLength, m_bufferCharacters16); in allocateBufferUpConvert()
171 m_buffer = StringImpl::reallocate(m_buffer.release(), requiredLength); in reallocateBuffer()
187 m_buffer = StringImpl::reallocate(m_buffer.release(), requiredLength); in reallocateBuffer()
DStringCF.cpp39 m_impl = StringImpl::empty(); in String()
45 m_impl = StringImpl::create(lcharBuffer.data(), size); in String()
51 m_impl = StringImpl::create(buffer.data(), size); in String()
DStringConcatenate.h169 StringImpl::copyChars(destination, m_buffer, m_length); in writeTo()
262 StringImpl::copyChars(destination, m_buffer, m_length); in writeTo()
399 PassRefPtr<StringImpl> makeString(StringType1 string1, StringType2 string2) in makeString()
412 RefPtr<StringImpl> resultImpl = StringImpl::createUninitialized(length, buffer); in makeString()
425 RefPtr<StringImpl> resultImpl = StringImpl::createUninitialized(length, buffer); in makeString()
DStringImplTest.cpp36 RefPtr<StringImpl> testStringImpl = StringImpl::create("1224"); in TEST()
/external/chromium_org/third_party/WebKit/Source/core/dom/
DDocumentOrderedMap.h45 void add(StringImpl*, Element*);
46 void remove(StringImpl*, Element*);
48 bool contains(StringImpl*) const;
49 bool containsMultiple(StringImpl*) const;
51 Element* getElementById(StringImpl*, const TreeScope*) const;
52 const Vector<Element*>& getAllElementsById(StringImpl*, const TreeScope*) const;
53 Element* getElementByMapName(StringImpl*, const TreeScope*) const;
54 Element* getElementByLowercasedMapName(StringImpl*, const TreeScope*) const;
55 Element* getElementByLabelForAttribute(StringImpl*, const TreeScope*) const;
58 …template<bool keyMatches(StringImpl*, Element&)> Element* get(StringImpl*, const TreeScope*) const;
[all …]
DDocumentOrderedMap.cpp44 inline bool keyMatchesId(StringImpl* key, Element& element) in keyMatchesId()
49 inline bool keyMatchesMapName(StringImpl* key, Element& element) in keyMatchesMapName()
54 inline bool keyMatchesLowercasedMapName(StringImpl* key, Element& element) in keyMatchesLowercasedMapName()
59 inline bool keyMatchesLabelForAttribute(StringImpl* key, Element& element) in keyMatchesLabelForAttribute()
64 void DocumentOrderedMap::add(StringImpl* key, Element* element) in add()
80 void DocumentOrderedMap::remove(StringImpl* key, Element* element) in remove()
104 template<bool keyMatches(StringImpl*, Element&)>
105 inline Element* DocumentOrderedMap::get(StringImpl* key, const TreeScope* scope) const in get()
129 Element* DocumentOrderedMap::getElementById(StringImpl* key, const TreeScope* scope) const in getElementById()
134 const Vector<Element*>& DocumentOrderedMap::getAllElementsById(StringImpl* key, const TreeScope* sc… in getAllElementsById()
[all …]
DNodeRareData.h92 static unsigned hash(const std::pair<unsigned char, StringImpl*>& entry) in hash()
94 return DefaultHash<StringImpl*>::Hash::hash(entry.second) + entry.first; in hash()
96 …atic bool equal(const std::pair<unsigned char, StringImpl*>& a, const std::pair<unsigned char, Str… in equal()
97 …static const bool safeToCompareToEmptyOrDeleted = DefaultHash<StringImpl*>::Hash::safeToCompareToE…
104 …typedef WillBeHeapHashMap<std::pair<unsigned char, StringImpl*>, RawPtrWillBeWeakMember<LiveNodeLi…
220 …std::pair<unsigned char, StringImpl*> namedNodeListKey(CollectionType type, const AtomicString& na… in namedNodeListKey()
224 return std::pair<unsigned char, StringImpl*>(type, name.impl()); in namedNodeListKey()
DQualifiedName.h32 StringImpl* m_prefix;
33 StringImpl* m_localName;
34 StringImpl* m_namespace;
139 static void createStatic(void* targetAddress, StringImpl* name);
140 …static void createStatic(void* targetAddress, StringImpl* name, const AtomicString& nameNamespace);
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DV8ValueCache.h38 class StringCacheMapTraits : public V8PersistentValueMapTraits<StringImpl*, v8::String, true> {
41 typedef StringImpl WeakCallbackDataType;
42 typedef v8::PersistentValueMap<StringImpl*, v8::String, StringCacheMapTraits> MapType;
45 MapType* map, StringImpl* key, v8::Local<v8::String>& value) { return key; } in WeakCallbackParameter()
51 static StringImpl* KeyFromWeakCallbackData( in KeyFromWeakCallbackData()
57 static void Dispose(v8::Isolate*, v8::UniquePersistent<v8::String> value, StringImpl* key);
66 v8::Handle<v8::String> v8ExternalString(StringImpl* stringImpl, v8::Isolate* isolate) in v8ExternalString()
74 void setReturnValueFromString(v8::ReturnValue<v8::Value> returnValue, StringImpl* stringImpl) in setReturnValueFromString()
86 v8::Handle<v8::String> v8ExternalStringSlow(StringImpl*, v8::Isolate*);
87 void setReturnValueFromStringSlow(v8::ReturnValue<v8::Value>, StringImpl*);
[all …]
DV8ValueCache.cpp42 v8::Isolate* isolate, v8::UniquePersistent<v8::String> value, StringImpl* key) in Dispose()
74 v8::Handle<v8::String> StringCache::v8ExternalStringSlow(StringImpl* stringImpl, v8::Isolate* isola… in v8ExternalStringSlow()
89 void StringCache::setReturnValueFromStringSlow(v8::ReturnValue<v8::Value> returnValue, StringImpl* … in setReturnValueFromStringSlow()
107 v8::Local<v8::String> StringCache::createStringAndInsertIntoCache(StringImpl* stringImpl, v8::Isola… in createStringAndInsertIntoCache()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderTextFragment.h36 RenderTextFragment(Node*, StringImpl*, int startOffset, int length);
37 RenderTextFragment(Node*, StringImpl*);
52 StringImpl* contentString() const { return m_contentString.get(); } in contentString()
53 virtual PassRefPtr<StringImpl> originalText() const OVERRIDE;
55 virtual void setText(PassRefPtr<StringImpl>, bool force = false) OVERRIDE;
71 RefPtr<StringImpl> m_contentString;
DRenderTextFragment.cpp32 RenderTextFragment::RenderTextFragment(Node* node, StringImpl* str, int startOffset, int length) in RenderTextFragment()
33 : RenderText(node, str ? str->substring(startOffset, length) : PassRefPtr<StringImpl>(nullptr)) in RenderTextFragment()
40 RenderTextFragment::RenderTextFragment(Node* node, StringImpl* str) in RenderTextFragment()
62 PassRefPtr<StringImpl> RenderTextFragment::originalText() const in originalText()
65 RefPtr<StringImpl> result = ((e && e->isTextNode()) ? toText(e)->dataImpl() : contentString()); in originalText()
88 void RenderTextFragment::setText(PassRefPtr<StringImpl> text, bool force) in setText()
112 if (RefPtr<StringImpl> textToTransform = originalText()) in transformText()
120 StringImpl* original = ((e && e->isTextNode()) ? toText(e)->dataImpl() : contentString()); in previousCharacter()
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DRenderSVGInlineText.cpp37 static PassRefPtr<StringImpl> applySVGWhitespaceRules(PassRefPtr<StringImpl> string, bool preserveW… in applySVGWhitespaceRules()
44 RefPtr<StringImpl> newString = string->replace('\t', ' '); in applySVGWhitespaceRules()
55 RefPtr<StringImpl> newString = string->replace('\n', StringImpl::empty()); in applySVGWhitespaceRules()
56 newString = newString->replace('\r', StringImpl::empty()); in applySVGWhitespaceRules()
61 RenderSVGInlineText::RenderSVGInlineText(Node* n, PassRefPtr<StringImpl> string) in RenderSVGInlineText()
68 void RenderSVGInlineText::setTextInternal(PassRefPtr<StringImpl> text) in setTextInternal()
/external/chromium_org/third_party/WebKit/Source/core/html/parser/
DHTMLPreloadScanner.cpp49 static bool match(const StringImpl* impl, const QualifiedName& qName) in match()
65 static const StringImpl* tagImplFor(const HTMLToken::DataVector& data) in tagImplFor()
68 const StringImpl* result = tagName.impl(); in tagImplFor()
74 static const StringImpl* tagImplFor(const String& tagName) in tagImplFor()
76 const StringImpl* result = tagName.impl(); in tagImplFor()
82 static String initiatorFor(const StringImpl* tagImpl) in initiatorFor()
106 StartTagScanner(const StringImpl* tagImpl, PassRefPtr<MediaValues> mediaValues) in StartTagScanner()
141 String attributeValue = StringImpl::create8BitIfPossible(iter->value); in processAttributes()
340 const StringImpl* m_tagImpl;
408 const StringImpl* tagImpl = tagImplFor(token.data()); in scanCommon()
[all …]
/external/chromium_org/third_party/WebKit/Source/build/scripts/templates/
DElementLookupTrie.h.tmpl7 #include "wtf/text/StringImpl.h"
11 StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length);

12345