/external/llvm/lib/Support/ |
StringPool.cpp | 1 //===-- StringPool.cpp - Interned string pool -----------------------------===// 10 // This file implements the StringPool class. 14 #include "llvm/Support/StringPool.h" 19 StringPool::StringPool() {} 21 StringPool::~StringPool() { 25 PooledStringPtr StringPool::intern(StringRef Key) {
|
/frameworks/base/tools/aapt2/ |
StringPool.h | 43 class StringPool { 66 friend class StringPool; 89 friend class StringPool; 103 friend class StringPool; 121 friend class StringPool; 129 static bool flattenUtf8(BigBuffer* out, const StringPool& pool); 130 static bool flattenUtf16(BigBuffer* out, const StringPool& pool); 132 StringPool() = default; 133 StringPool(const StringPool&) = delete [all...] |
StringPool_test.cpp | 17 #include "StringPool.h" 28 StringPool pool; 30 StringPool::Ref ref = pool.makeRef(u"wut"); 35 StringPool pool; 37 StringPool::Ref ref = pool.makeRef(u"wut"); 38 StringPool::Ref ref2 = pool.makeRef(u"hey"); 45 StringPool pool; 47 StringPool::Ref ref = pool.makeRef(u"wut"); 48 StringPool::Ref ref2 = pool.makeRef(u"wut"); 56 StringPool pool [all...] |
StringPool.cpp | 19 #include "StringPool.h" 29 StringPool::Ref::Ref() : mEntry(nullptr) { 32 StringPool::Ref::Ref(const StringPool::Ref& rhs) : mEntry(rhs.mEntry) { 38 StringPool::Ref::Ref(StringPool::Entry* entry) : mEntry(entry) { 44 StringPool::Ref::~Ref() { 50 StringPool::Ref& StringPool::Ref::operator=(const StringPool::Ref& rhs) [all...] |
ResourceValues.h | 21 #include "StringPool.h" 66 virtual Value* clone(StringPool* newPool) const = 0; 95 virtual Item* clone(StringPool* newPool) const override = 0; 135 Reference* clone(StringPool* newPool) const override; 145 Id* clone(StringPool* newPool) const override; 155 StringPool::Ref value; 157 RawString(const StringPool::Ref& ref); 160 RawString* clone(StringPool* newPool) const override; 165 StringPool::Ref value; 167 String(const StringPool::Ref& ref) [all...] |
ResourceValues.cpp | 39 RawString::RawString(const StringPool::Ref& ref) : value(ref) { 42 RawString* RawString::clone(StringPool* newPool) const { 74 Reference* Reference::clone(StringPool* /*newPool*/) const { 109 Id* Id::clone(StringPool* /*newPool*/) const { 117 String::String(const StringPool::Ref& ref) : value(ref) { 121 // Verify that our StringPool index is within encodeable limits. 131 String* String::clone(StringPool* newPool) const { 139 StyledString::StyledString(const StringPool::StyleRef& ref) : value(ref) { 152 StyledString* StyledString::clone(StringPool* newPool) const { 160 FileReference::FileReference(const StringPool::Ref& _path) : path(_path) [all...] |
ResourceTable.h | 24 #include "StringPool.h" 173 StringPool& getValueStringPool(); 174 const StringPool& getValueStringPool() const; 198 // StringPool must come before mTypes so that it is destroyed after. 199 // When StringPool references are destroyed (as they will be when mTypes 202 StringPool mValuePool; 235 inline StringPool& ResourceTable::getValueStringPool() { 239 inline const StringPool& ResourceTable::getValueStringPool() const {
|
XmlFlattener.cpp | 26 #include "StringPool.h" 42 using FlatStringRefList = std::vector<std::pair<StringPool::Ref, android::ResStringPool_ref*>>; 45 XmlFlattener(BigBuffer* outBuffer, StringPool* pool, FlatStringRefList* stringRefs, 156 mStringRefs->emplace_back(mPool->makeRef(str, StringPool::Context{ priority }), dest); 163 void addString(const StringPool::Ref& ref, android::ResStringPool_ref* dest) { 190 StringPool* mPool; 201 CompileXmlFlattener(BigBuffer* outBuffer, StringPool* pool, FlatStringRefList* stringRefs, 239 LinkedXmlFlattener(BigBuffer* outBuffer, StringPool* pool, 240 std::map<std::u16string, StringPool>* packagePools, 339 // their StringPool index to lookup their resource IDs [all...] |
/libcore/luni/src/test/java/libcore/internal/ |
StringPoolTest.java | 20 import libcore.internal.StringPool; 25 StringPool stringPool = new StringPool(); 26 String bcd = stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3); 28 assertSame(bcd, stringPool.get(new char[] { 'a', 'b', 'c', 'd', 'e' }, 1, 3)); 32 StringPool stringPool = new StringPool(); 37 String aString = stringPool.get(a, 0, 2) [all...] |
/external/llvm/unittests/Support/ |
StringPool.cpp | 1 //===- llvm/unittest/Support/StringPoiil.cpp - StringPool tests -----------===// 10 #include "llvm/Support/StringPool.h" 18 StringPool pool; 25 StringPool pool;
|
/external/lldb/source/Core/ |
ConstString.cpp | 21 typedef llvm::StringMap<StringPoolValueType, llvm::BumpPtrAllocator> StringPool; 167 typedef StringPool::iterator iterator; 168 typedef StringPool::const_iterator const_iterator; 174 StringPool m_string_map; 193 StringPool() 211 m_string (StringPool().GetConstCString (cstr)) 216 m_string (StringPool().GetConstCStringWithLength (cstr, cstr_len)) 221 m_string (StringPool().GetConstCStringWithLength (s.data(), s.size())) 231 llvm::StringRef lhs_string_ref (m_string, StringPool().GetConstCStringLength (m_string)); 232 llvm::StringRef rhs_string_ref (rhs.m_string, StringPool().GetConstCStringLength (rhs.m_string)) [all...] |
/external/llvm/include/llvm/Support/ |
StringPool.h | 1 //===-- StringPool.h - Interned string pool ---------------------*- C++ -*-===// 15 // StringPool Pool; 39 /// StringPool - An interned string pool. Use the intern method to add a 42 class StringPool { 46 StringPool *Pool; ///< So the string can remove itself. 60 StringPool(); 61 ~StringPool(); 79 typedef StringPool::entry_t entry_t;
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/pool/ |
TypePool.java | 42 @Nonnull private final StringPool stringPool; 44 public TypePool(@Nonnull StringPool stringPool) { 45 this.stringPool = stringPool; 52 stringPool.intern(typeString);
|
FieldPool.java | 42 @Nonnull private final StringPool stringPool; 45 public FieldPool(@Nonnull StringPool stringPool, @Nonnull TypePool typePool) { 46 this.stringPool = stringPool; 54 stringPool.intern(field.getName());
|
MethodPool.java | 41 @Nonnull private final StringPool stringPool; 45 public MethodPool(@Nonnull StringPool stringPool, @Nonnull TypePool typePool, 47 this.stringPool = stringPool; 57 stringPool.intern(method.getName());
|
StringPool.java | 41 public class StringPool extends StringTypeBasePool implements StringSection<CharSequence, StringReference> {
|
AnnotationPool.java | 44 @Nonnull StringPool stringPool; 49 public AnnotationPool(@Nonnull StringPool stringPool, @Nonnull TypePool typePool, 51 this.stringPool = stringPool; 62 stringPool.intern(element.getName()); 63 DexPool.internEncodedValue(element.getValue(), stringPool, typePool, fieldPool, methodPool);
|
DexPool.java | 64 StringPool stringPool = new StringPool(); 65 TypePool typePool = new TypePool(stringPool); 66 FieldPool fieldPool = new FieldPool(stringPool, typePool); 68 ProtoPool protoPool = new ProtoPool(stringPool, typePool, typeListPool); 69 MethodPool methodPool = new MethodPool(stringPool, typePool, protoPool); 70 AnnotationPool annotationPool = new AnnotationPool(stringPool, typePool, fieldPool, methodPool); 72 ClassPool classPool = new ClassPool(stringPool, typePool, fieldPool, methodPool, annotationSetPool, 75 return new DexPool(api, stringPool, typePool, protoPool, fieldPool, methodPool, classPool, typeListPool [all...] |
/frameworks/base/tools/aapt/ |
StringPool.h | 37 * The StringPool class is used as an intermediate representation for 41 class StringPool 88 explicit StringPool(bool utf8 = false); 147 explicit ConfigSorter(const StringPool&); 150 const StringPool& pool; 187 ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry); 188 ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry_style_span); 189 ANDROID_TRIVIAL_MOVE_TRAIT(StringPool::entry_style);
|
StringPool.cpp | 6 #include "StringPool.h" 85 String8 StringPool::entry::makeConfigsString() const { 99 int StringPool::entry::compare(const entry& o) const { 129 StringPool::StringPool(bool utf8) : 134 ssize_t StringPool::add(const String16& value, const Vector<entry_style_span>& spans, 144 ssize_t StringPool::add(const String16& value, 215 status_t StringPool::addStyleSpan(size_t idx, const String16& name, 225 status_t StringPool::addStyleSpans(size_t idx, const Vector<entry_style_span>& spans) 237 status_t StringPool::addStyleSpan(size_t idx, const entry_style_span& span [all...] |
XMLNode.h | 10 #include "StringPool.h" 27 Vector<StringPool::entry_style_span>* outSpans, 179 status_t collect_strings(StringPool* dest, Vector<uint32_t>* outResIds, 182 status_t collect_attr_strings(StringPool* outPool, 185 status_t collect_resid_strings(StringPool* outPool, 188 status_t flatten_node(const StringPool& strings, const sp<AaptFile>& dest,
|
Android.mk | 44 StringPool.cpp \
|
/external/clang/tools/libclang/ |
CXTranslationUnit.h | 32 clang::cxstring::CXStringPool *StringPool;
|
CXString.cpp | 138 return TU->StringPool->getCXStringBuf(TU); 142 TU->StringPool->Pool.push_back(this);
|
/libcore/luni/src/main/java/libcore/internal/ |
StringPool.java | 24 public final class StringPool {
|