Lines Matching full:mentry
29 StringPool::Ref::Ref() : mEntry(nullptr) {
32 StringPool::Ref::Ref(const StringPool::Ref& rhs) : mEntry(rhs.mEntry) {
33 if (mEntry != nullptr) {
34 mEntry->ref++;
38 StringPool::Ref::Ref(StringPool::Entry* entry) : mEntry(entry) {
39 if (mEntry != nullptr) {
40 mEntry->ref++;
45 if (mEntry != nullptr) {
46 mEntry->ref--;
51 if (rhs.mEntry != nullptr) {
52 rhs.mEntry->ref++;
55 if (mEntry != nullptr) {
56 mEntry->ref--;
58 mEntry = rhs.mEntry;
63 return &mEntry->value;
67 return mEntry->value;
71 return mEntry->index;
75 return mEntry->context;
78 StringPool::StyleRef::StyleRef() : mEntry(nullptr) {
81 StringPool::StyleRef::StyleRef(const StringPool::StyleRef& rhs) : mEntry(rhs.mEntry) {
82 if (mEntry != nullptr) {
83 mEntry->ref++;
87 StringPool::StyleRef::StyleRef(StringPool::StyleEntry* entry) : mEntry(entry) {
88 if (mEntry != nullptr) {
89 mEntry->ref++;
94 if (mEntry != nullptr) {
95 mEntry->ref--;
100 if (rhs.mEntry != nullptr) {
101 rhs.mEntry->ref++;
104 if (mEntry != nullptr) {
105 mEntry->ref--;
107 mEntry = rhs.mEntry;
112 return mEntry;
116 return *mEntry;
120 return mEntry->str.getIndex();
124 return mEntry->str.getContext();
180 entry->value = *ref.mEntry->str;
181 entry->context = ref.mEntry->str.mEntry->context;
189 for (const Span& span : ref.mEntry->spans) {