Beispiel #1
0
 public static ICharIterator ToIterator(this StringBuilder value, int offset, int count)
 {
     return(CharIteratorPool.Rent(value, offset, count));
 }
Beispiel #2
0
 public static ICharIterator ToIterator(this char highSurrogate, char lowSurrogate)
 {
     return(CharIteratorPool.Rent(highSurrogate, lowSurrogate));
 }
Beispiel #3
0
 public SizeF GetGlyphs(StringBuilder text, int offset, int count, ICollection <Glyph> output)
 {
     using (var iterator = CharIteratorPool.Rent(text, offset, count))
         return(GetGlyphs(iterator, output));
 }
Beispiel #4
0
 public static ICharIterator ToIterator(this char value)
 {
     return(CharIteratorPool.Rent(value));
 }
Beispiel #5
0
        public IEnumerator <Glyph> GetGlyphs(string text, int offset, int count, Vector2 position = default)
        {
            var iterator = CharIteratorPool.Rent(text, offset, count);

            return(GlyphEnumeratorPool.Rent(this, iterator, position));
        }