Home
last modified time | relevance | path

Searched refs:fLength (Results 1 – 25 of 104) sorted by relevance

12345

/external/icu/icu4c/source/tools/genrb/
Dustr.c37 s->fLength = s->fCapacity = 0; in ustr_init()
46 s->fLength = s->fCapacity = 0; in ustr_initChars()
77 s->fLength = s->fCapacity = 0; in ustr_deinit()
89 if(dst->fCapacity < src->fLength) { in ustr_cpy()
90 ustr_resize(dst, ALLOCATION(src->fLength), status); in ustr_cpy()
97 u_memcpy(dst->fChars, src->fChars, src->fLength); in ustr_cpy()
98 dst->fLength = src->fLength; in ustr_cpy()
99 dst->fChars[dst->fLength] = 0x0000; in ustr_cpy()
116 s->fLength = len; in ustr_setlen()
125 ustr_ncat(dst, src, src->fLength, status); in ustr_cat()
[all …]
/external/icu/icu4c/source/i18n/
Dformatted_string_builder.cpp95 fLength = other.fLength; in operator =()
100 return fLength; in length()
104 return u_countChar32(getCharPtr() + fZero, fLength); in codePointCount()
108 if (fLength == 0) { in getFirstCodePoint()
112 U16_GET(getCharPtr() + fZero, 0, 0, fLength, cp); in getFirstCodePoint()
117 if (fLength == 0) { in getLastCodePoint()
120 int32_t offset = fLength; in getLastCodePoint()
123 U16_GET(getCharPtr() + fZero, 0, offset, fLength, cp); in getLastCodePoint()
129 U16_GET(getCharPtr() + fZero, 0, index, fLength, cp); in codePointAt()
137 U16_GET(getCharPtr() + fZero, 0, offset, fLength, cp); in codePointBefore()
[all …]
Dnumber_usageprefs.cpp38 fLength = 0; in operator =()
52 fUsage = (char *)uprv_malloc(other.fLength + 1); in operator =()
57 fLength = other.fLength; in operator =()
58 uprv_strncpy(fUsage, other.fUsage, fLength + 1); in operator =()
63 Usage::Usage(Usage &&src) U_NOEXCEPT : fUsage(src.fUsage), fLength(src.fLength), fError(src.fError)… in Usage()
77 fLength = src.fLength; in operator =()
96 fLength = value.length(); in set()
97 fUsage = (char *)uprv_malloc(fLength + 1); in set()
99 fLength = 0; in set()
103 uprv_strncpy(fUsage, value.data(), fLength); in set()
[all …]
Dformatted_string_builder.h81 U_ASSERT(index < fLength); in charAt()
87 U_ASSERT(index < fLength); in fieldAt()
104 return insertCodePoint(fLength, codeUnit, field, status); in appendChar16()
115 return insertCodePoint(fLength, codePoint, field, status); in appendCodePoint()
123 return insert(fLength, unistr, field, status); in append()
189 int32_t fLength = 0; variable
/external/skia/modules/skplaintexteditor/src/
Dstringslice.cpp17 , fLength(that.fLength) in StringSlice()
20 that.fLength = 0; in StringSlice()
34 fLength = 0; in operator =()
44 offset = std::min(fLength, offset); in insert()
45 this->reserve(fLength + length); in insert()
48 if (offset != fLength) { in insert()
49 std::memmove(s + offset + length, s + offset, fLength - offset); in insert()
56 fLength += length; in insert()
61 if (length && offset < fLength) { in remove()
62 length = std::min(length, fLength - offset); in remove()
[all …]
/external/skia/src/sksl/
DSkSLString.cpp58 if (fLength < suffixLength) { in endsWith()
61 return !strncmp(fChars + fLength - suffixLength, suffix, suffixLength); in endsWith()
90 result.append(s.fChars, s.fLength); in operator +()
110 this->append(s.fChars, s.fLength); in operator +=()
145 if (fLength != s.fLength) { in operator ==()
148 return !memcmp(fChars, s.fChars, fLength); in operator ==()
152 if (fLength != s.fLength) { in operator !=()
155 return memcmp(fChars, s.fChars, fLength); in operator !=()
159 for (size_t i = 0; i < fLength; ++i) { in operator ==()
164 return 0 == s[fLength]; in operator ==()
[all …]
DSkSLLexer.h108 Token() : fKind(Kind::TK_NONE), fOffset(-1), fLength(-1) {} in Token()
111 : fKind(kind), fOffset(offset), fLength(length) {} in Token()
115 int fLength; member
122 fLength = length; in start()
134 int32_t fLength; variable
/external/skqp/src/pdf/
DSkJpegInfo.cpp21 , fLength(0) {} in JpegSegment()
27 fLength = 0; in read()
31 if (!this->readBigendianUint16(&fLength) || fLength < 2) { in read()
34 fLength -= 2; // Length includes itself for some reason. in read()
35 if (fOffset + fLength > fSize) { in read()
39 fOffset += fLength; in read()
48 uint16_t length() { return fLength; } in length()
63 uint16_t fLength; member in __anon4bd005a70111::JpegSegment
/external/skia/src/pdf/
DSkJpegInfo.cpp21 , fLength(0) {} in JpegSegment()
27 fLength = 0; in read()
31 if (!this->readBigendianUint16(&fLength) || fLength < 2) { in read()
34 fLength -= 2; // Length includes itself for some reason. in read()
35 if (fOffset + fLength > fSize) { in read()
39 fOffset += fLength; in read()
48 uint16_t length() { return fLength; } in length()
63 uint16_t fLength; member in __anoncb5f76700111::JpegSegment
/external/skqp/src/sksl/
DSkSLString.cpp124 result.append(s.fChars, s.fLength); in operator +()
144 this->append(s.fChars, s.fLength); in operator +=()
179 if (fLength != s.fLength) { in operator ==()
182 return !memcmp(fChars, s.fChars, fLength); in operator ==()
186 if (fLength != s.fLength) { in operator !=()
189 return memcmp(fChars, s.fChars, fLength); in operator !=()
193 for (size_t i = 0; i < fLength; ++i) { in operator ==()
198 return 0 == s[fLength]; in operator ==()
202 for (size_t i = 0; i < fLength; ++i) { in operator !=()
207 return 0 != s[fLength]; in operator !=()
[all …]
DSkSLString.h31 , fLength(0) {} in StringFragment()
35 , fLength(strlen(chars)) {} in StringFragment()
39 , fLength(length) {} in StringFragment()
52 size_t fLength; member
79 : INHERITED(s.fChars, s.fLength) {} in String()
142 for (size_t i = 0; i < s.fLength; ++i) {
/external/skia/include/private/
DSkSLString.h28 , fLength(0) {} in StringFragment()
32 , fLength(strlen(chars)) {} in StringFragment()
36 , fLength(length) {} in StringFragment()
39 const char* end() const { return fChars + fLength; } in end()
42 size_t size() const { return fLength; } in size()
43 size_t length() const { return fLength; } in length()
59 operator SkString() const { return SkString(fChars, fLength); } in SkString()
63 size_t fLength; member
75 String(StringFragment s) : INHERITED(s.fChars, s.fLength) {} in String()
127 for (size_t i = 0; i < s.fLength; ++i) {
/external/skqp/src/core/
DSkDescriptor.cpp28 Entry* entry = (Entry*)((char*)this + fLength); in addEntry()
36 fLength = SkToU32(fLength + sizeof(Entry) + length); in addEntry()
61 std::unique_ptr<SkDescriptor> desc = SkDescriptor::Alloc(fLength); in copy()
62 memcpy(desc.get(), this, fLength); in copy()
74 const uint32_t* stop = (const uint32_t*)((const char*)aa + fLength); in operator ==()
84 size_t len = desc->fLength - sizeof(uint32_t); in ComputeChecksum()
DSkString.cpp251 SkASSERT(0 == gEmptyRec.fLength); in validate()
256 SkASSERT(fRec->fLength > 0); in validate()
258 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate()
310 return fRec->fLength == len && !memcmp(fRec->data(), text, len); in equals()
349 if (fRec->fLength) { in writable_str()
351 fRec = Rec::Make(fRec->data(), fRec->fLength); in writable_str()
366 } else if (unique && len <= fRec->fLength) { in set()
374 fRec->fLength = SkToU32(len); in set()
375 } else if (unique && (fRec->fLength >> 2) == (len >> 2)) { in set()
382 fRec->fLength = SkToU32(len); in set()
[all …]
/external/skia/modules/skplaintexteditor/include/
Dstringslice.h26 const char* end() const { return fPtr ? fPtr.get() + fLength : nullptr; } in end()
27 std::size_t size() const { return fLength; } in size()
28 SkPlainTextEditor::StringView view() const { return {fPtr.get(), fLength}; } in view()
36 void shrink() { this->realloc(fLength); } in shrink()
41 std::size_t fLength = 0; variable
/external/skia/gm/
Ddrawglyphs.cpp37 fLength = positions.back().x() - positions.front().x(); in onOnceBeforeDraw()
38 fRadius = fLength / SK_FloatPI; in onOnceBeforeDraw()
43 const SkScalar angle = SK_FloatPI * (fLength - lengthToGlyph) / fLength; in onOnceBeforeDraw()
73 {50 + fLength / 2, 160 + fRadius}, fFont, SkPaint{}); in onDraw()
86 SkScalar fLength; member in DrawGlyphsGM
/external/skia/src/core/
DSkString.cpp25 int fLength; member
255 SkASSERT(0 == gEmptyRec.fLength); in validate()
260 SkASSERT(fRec->fLength > 0); in validate()
262 SkASSERT(0 == fRec->data()[fRec->fLength]); in validate()
312 return fRec->fLength == len && !sk_careful_memcmp(fRec->data(), text, len); in equals()
343 if (fRec->fLength) { in writable_str()
345 fRec = Rec::Make(fRec->data(), fRec->fLength); in writable_str()
355 } else if (fRec->unique() && ((len >> 2) <= (fRec->fLength >> 2))) { in resize()
359 fRec->fLength = SkToU32(len); in resize()
378 } else if (fRec->unique() && ((len >> 2) <= (fRec->fLength >> 2))) { in set()
[all …]
DSkDescriptor.cpp32 Entry* entry = (Entry*)((char*)this + fLength); in addEntry()
40 fLength = SkToU32(fLength + sizeof(Entry) + length); in addEntry()
65 std::unique_ptr<SkDescriptor> desc = SkDescriptor::Alloc(fLength); in copy()
66 memcpy(desc.get(), this, fLength); in copy()
78 const uint32_t* stop = (const uint32_t*)((const char*)aa + fLength); in operator ==()
100 size_t len = desc->fLength - sizeof(uint32_t); in ComputeChecksum()
106 size_t lengthRemaining = this->fLength; in isValid()
/external/skqp/src/gpu/
DGrSKSLPrettyPrint.cpp34 fLength = lengths[i]; in prettify()
37 while (fLength > fIndex) { in prettify()
110 for (size_t j = 0; token[j] && fLength > i; i++, j++) { in hasToken()
123 while (fLength > fIndex) { in parseUntilNewline()
139 while (fLength > fIndex) { in parseUntil()
186 size_t fIndex, fLength; member in GrSKSLPrettyPrint::GLSLPrettyPrint
/external/skqp/src/sksl/ir/
DSkSLType.h71 fName.fLength = fNameString.size(); in Type()
82 fName.fLength = fNameString.size(); in Type()
92 fName.fLength = fNameString.size(); in Type()
103 fName.fLength = fNameString.size(); in Type()
114 fName.fLength = fNameString.size(); in Type()
127 fName.fLength = fNameString.size(); in Type()
144 fName.fLength = fNameString.size(); in Type()
162 fName.fLength = fNameString.size(); in Type()
176 fName.fLength = fNameString.size(); in Type()
192 fName.fLength = fNameString.size(); in Type()
/external/skia/src/gpu/
DGrShaderUtils.cpp32 fLength = string.length(); in prettify()
35 while (fLength > fIndex) { in prettify()
108 for (size_t j = 0; token[j] && fLength > i; i++, j++) { in hasToken()
121 while (fLength > fIndex) { in parseUntilNewline()
137 while (fLength > fIndex) { in parseUntil()
177 size_t fIndex, fLength; member in GrShaderUtils::GLSLPrettyPrint
/external/icu/icu4c/source/tools/gennorm2/
Dnorms.cpp26 if(cc==0 || fLength==0 || ccAt(fLength-1)<=cc) { in append()
28 fLastStarterIndex=fLength; in append()
30 fArray[fLength++]=(c<<8)|cc; in append()
34 int32_t i=fLength-1; in append()
40 for(int32_t j=fLength; i<j; --j) { in append()
44 ++fLength; in append()
50 for(int32_t i=0; i<fLength; ++i) { in toString()
Dnorms.h30 BuilderReorderingBuffer() : fLength(0), fLastStarterIndex(-1), fDidReorder(FALSE) {} in BuilderReorderingBuffer()
32 fLength=0; in reset()
36 int32_t length() const { return fLength; } in length()
37 UBool isEmpty() const { return fLength==0; } in isEmpty()
48 int32_t fLength; variable
/external/icu/libicu/cts_headers/
Dformatted_string_builder.h81 U_ASSERT(index < fLength); in charAt()
87 U_ASSERT(index < fLength); in fieldAt()
104 return insertCodePoint(fLength, codeUnit, field, status); in appendChar16()
115 return insertCodePoint(fLength, codePoint, field, status); in appendCodePoint()
123 return insert(fLength, unistr, field, status); in append()
189 int32_t fLength = 0; variable
/external/pdfium/xfa/fwl/
Dcfwl_scrollbar.cpp143 float fLength = IsVertical() ? m_rtClient.height : m_rtClient.width; in CalcButtonLen() local
144 if (fLength < m_fButtonLen * 2) { in CalcButtonLen()
145 m_fButtonLen = fLength / 2; in CalcButtonLen()
188 float fLength = IsVertical() ? rtClient.height : rtClient.width; in CalcThumbButtonRect() local
190 fLength -= fSize * 2.0f; in CalcThumbButtonRect()
191 if (fLength < fSize) in CalcThumbButtonRect()
192 fLength = 0.0f; in CalcThumbButtonRect()
194 float fThumbSize = fLength * fLength / (fRange + fLength); in CalcThumbButtonRect()
197 float fDiff = std::max(fLength - fThumbSize, 0.0f); in CalcThumbButtonRect()

12345