コード例 #1
0
 public void Dispose()
 {
     if (_isInUse)
     {
         CharIteratorPool.Return(this);
     }
 }
コード例 #2
0
 public static ICharIterator ToIterator(this StringBuilder value, int offset, int count)
 {
     return(CharIteratorPool.Rent(value, offset, count));
 }
コード例 #3
0
 public static ICharIterator ToRepeatingIterator(this char highSurrogate, char lowSurrogate, int length)
 {
     return(CharIteratorPool.RentRepeater(highSurrogate, lowSurrogate, length));
 }
コード例 #4
0
 public static ICharIterator ToRepeatingIterator(this char value, int length)
 {
     return(CharIteratorPool.RentRepeater(value, length));
 }
コード例 #5
0
 public static ICharIterator ToIterator(this char highSurrogate, char lowSurrogate)
 {
     return(CharIteratorPool.Rent(highSurrogate, lowSurrogate));
 }
コード例 #6
0
 public static ICharIterator ToIterator(this char value)
 {
     return(CharIteratorPool.Rent(value));
 }
コード例 #7
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));
 }
コード例 #8
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));
        }