Searched defs:textIterator (Results 1 - 4 of 4) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
H A D | SVGGlyphMap.h | 69 Latin1TextIterator textIterator(unicodeString.characters8(), 0, length, length); 70 node = findOrCreateNode(textIterator); 72 SurrogatePairAwareTextIterator textIterator(unicodeString.characters16(), 0, length, length); 73 node = findOrCreateNode(textIterator); 115 Latin1TextIterator textIterator(string.characters8(), 0, length, length); 116 collectGlyphsForIterator(textIterator, glyphs); 118 SurrogatePairAwareTextIterator textIterator(string.characters16(), 0, length, length); 119 collectGlyphsForIterator(textIterator, glyphs); 134 Latin1TextIterator textIterator(string.characters8(), 0, length, length); 135 node = findNode(textIterator); 95 ASSERT(tableEntry < std::numeric_limits<unsigned short>::max()); glyph.tableEntry = tableEntry + 1; m_glyphTable.append(glyph); } static inline bool compareGlyphPriority(const SVGGlyph& first, const SVGGlyph& second) { return first.priority < second.priority; } void collectGlyphsForString(const String& string, Vector<SVGGlyph>& glyphs) { unsigned length = string.length(); if (!length) return; if (string.is8Bit()) { Latin1TextIterator textIterator(string.characters8(), 0, length, length); collectGlyphsForIterator(textIterator, glyphs); } else { SurrogatePairAwareTextIterator textIterator(string.characters16(), 0, length, length); collectGlyphsForIterator(textIterator, glyphs); } std::sort(glyphs.begin(), glyphs.end(), compareGlyphPriority); } void collectGlyphsForStringExact(const String& string, Vector<SVGGlyph>& glyphs) const { unsigned length = string.length(); if (!length) return; RefPtr<GlyphMapNode> node; if (string.is8Bit()) { Latin1TextIterator textIterator(string.characters8(), 0, length, length); node = findNode(textIterator); } else { SurrogatePairAwareTextIterator textIterator(string.characters16(), 0, length, length); node = findNode(textIterator); } if (node) glyphs.appendVector(node->glyphs); } void collectGlyphsForUnicodeRange(const UnicodeRange& unicodeRange, Vector<SVGGlyph>& glyphs) const { for (unsigned character = unicodeRange.first; character <= unicodeRange.second; ++character) { if (RefPtr<GlyphMapNode> node = m_rootLayer.get(character)) glyphs.appendVector(node->glyphs); } } void clear() { m_rootLayer.clear(); m_glyphTable.clear(); m_idGlyphs.clear(); m_namedGlyphs.clear(); m_currentPriority = 0; } void dropNamedGlyphMap() { m_namedGlyphs.clear(); } const SVGGlyph& svgGlyphForGlyph(Glyph glyph) const { if (!glyph || glyph > m_glyphTable.size()) argument 188 findOrCreateNode(Iterator& textIterator) argument 228 collectGlyphsForIterator(Iterator& textIterator, Vector<SVGGlyph>& glyphs) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
H A D | WidthIterator.cpp | 134 inline unsigned WidthIterator::advanceInternal(TextIterator& textIterator, GlyphBuffer* glyphBuffer) argument 153 while (textIterator.consume(character, clusterLength)) { 155 const GlyphData& glyphData = glyphDataForCharacter(character, rtl, textIterator.currentCharacter(), advanceLength); 225 if (m_run.allowsTrailingExpansion() || (m_run.ltr() && textIterator.currentCharacter() + advanceLength < static_cast<size_t>(m_run.length())) 226 || (m_run.rtl() && textIterator.currentCharacter())) { 236 if (treatAsSpace && (character != '\t' || !m_run.allowTabs()) && (textIterator.currentCharacter() || character == noBreakSpace) && m_font->fontDescription().wordSpacing()) 251 if (!textIterator.currentCharacter()) 259 textIterator.advance(advanceLength); 278 if ((m_run.applyWordRounding() && textIterator.currentCharacter() < m_run.length() && Character::isRoundingHackCharacter(*(textIterator [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
H A D | rbbitst.cpp | 1567 StringCharacterIterator* textIterator = new StringCharacterIterator(str, begin, end, begin); local 1568 iter->adoptText(textIterator);
|
/external/icu/icu4c/source/test/intltest/ |
H A D | rbbitst.cpp | 772 StringCharacterIterator* textIterator = new StringCharacterIterator(str, begin, end, begin); local 773 iter->adoptText(textIterator);
|
Completed in 5836 milliseconds