Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class OpenStringBuilder

    A StringBuilder that allows one to access the array.

    Inheritance
    System.Object
    OpenStringBuilder
    Implements
    J2N.Text.IAppendable
    J2N.Text.ICharSequence
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Analysis.Util
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public class OpenStringBuilder : IAppendable, ICharSequence

    Constructors

    | Improve this Doc View Source

    OpenStringBuilder()

    Declaration
    public OpenStringBuilder()
    | Improve this Doc View Source

    OpenStringBuilder(Char[], Int32)

    Declaration
    public OpenStringBuilder(char[] arr, int len)
    Parameters
    Type Name Description
    System.Char[] arr
    System.Int32 len
    | Improve this Doc View Source

    OpenStringBuilder(Int32)

    Declaration
    public OpenStringBuilder(int size)
    Parameters
    Type Name Description
    System.Int32 size

    Fields

    | Improve this Doc View Source

    m_buf

    Declaration
    protected char[] m_buf
    Field Value
    Type Description
    System.Char[]
    | Improve this Doc View Source

    m_len

    Declaration
    protected int m_len
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Array

    Declaration
    public virtual char[] Array { get; }
    Property Value
    Type Description
    System.Char[]
    | Improve this Doc View Source

    Capacity

    Declaration
    public virtual int Capacity { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Item[Int32]

    Declaration
    public virtual char this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    System.Char
    | Improve this Doc View Source

    Length

    Declaration
    public virtual int Length { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Append(ICharSequence)

    Declaration
    public virtual OpenStringBuilder Append(ICharSequence csq)
    Parameters
    Type Name Description
    J2N.Text.ICharSequence csq
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(ICharSequence, Int32, Int32)

    Declaration
    public virtual OpenStringBuilder Append(ICharSequence csq, int startIndex, int count)
    Parameters
    Type Name Description
    J2N.Text.ICharSequence csq
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(Char)

    Declaration
    public virtual OpenStringBuilder Append(char c)
    Parameters
    Type Name Description
    System.Char c
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(Char[])

    Declaration
    public virtual OpenStringBuilder Append(char[] value)
    Parameters
    Type Name Description
    System.Char[] value
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(Char[], Int32, Int32)

    Declaration
    public virtual OpenStringBuilder Append(char[] value, int startIndex, int count)
    Parameters
    Type Name Description
    System.Char[] value
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(String)

    Declaration
    public virtual OpenStringBuilder Append(string csq)
    Parameters
    Type Name Description
    System.String csq
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(String, Int32, Int32)

    Declaration
    public virtual OpenStringBuilder Append(string csq, int startIndex, int count)
    Parameters
    Type Name Description
    System.String csq
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(StringBuilder)

    Declaration
    public virtual OpenStringBuilder Append(StringBuilder csq)
    Parameters
    Type Name Description
    System.Text.StringBuilder csq
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    Append(StringBuilder, Int32, Int32)

    Declaration
    public virtual OpenStringBuilder Append(StringBuilder csq, int startIndex, int count)
    Parameters
    Type Name Description
    System.Text.StringBuilder csq
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    OpenStringBuilder
    | Improve this Doc View Source

    EnsureCapacity(Int32)

    Declaration
    public virtual void EnsureCapacity(int capacity)
    Parameters
    Type Name Description
    System.Int32 capacity
    | Improve this Doc View Source

    Reset()

    Declaration
    public void Reset()
    | Improve this Doc View Source

    Resize(Int32)

    Declaration
    protected virtual void Resize(int len)
    Parameters
    Type Name Description
    System.Int32 len
    | Improve this Doc View Source

    Set(Char[], Int32)

    Declaration
    public virtual void Set(char[] arr, int end)
    Parameters
    Type Name Description
    System.Char[] arr
    System.Int32 end
    | Improve this Doc View Source

    Subsequence(Int32, Int32)

    Declaration
    public virtual ICharSequence Subsequence(int startIndex, int length)
    Parameters
    Type Name Description
    System.Int32 startIndex
    System.Int32 length
    Returns
    Type Description
    J2N.Text.ICharSequence
    | Improve this Doc View Source

    ToCharArray()

    Declaration
    public virtual char[] ToCharArray()
    Returns
    Type Description
    System.Char[]
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    UnsafeWrite(Char)

    Declaration
    public virtual void UnsafeWrite(char b)
    Parameters
    Type Name Description
    System.Char b
    | Improve this Doc View Source

    UnsafeWrite(Char[], Int32, Int32)

    Declaration
    public virtual void UnsafeWrite(char[] b, int off, int len)
    Parameters
    Type Name Description
    System.Char[] b
    System.Int32 off
    System.Int32 len
    | Improve this Doc View Source

    UnsafeWrite(Int32)

    Declaration
    public virtual void UnsafeWrite(int b)
    Parameters
    Type Name Description
    System.Int32 b
    | Improve this Doc View Source

    UnsafeWrite(StringBuilder, Int32, Int32)

    Declaration
    public virtual void UnsafeWrite(StringBuilder b, int off, int len)
    Parameters
    Type Name Description
    System.Text.StringBuilder b
    System.Int32 off
    System.Int32 len
    | Improve this Doc View Source

    Write(OpenStringBuilder)

    Declaration
    public void Write(OpenStringBuilder arr)
    Parameters
    Type Name Description
    OpenStringBuilder arr
    | Improve this Doc View Source

    Write(Char)

    Declaration
    public virtual void Write(char b)
    Parameters
    Type Name Description
    System.Char b
    | Improve this Doc View Source

    Write(Char[])

    Declaration
    public void Write(char[] b)
    Parameters
    Type Name Description
    System.Char[] b
    | Improve this Doc View Source

    Write(Char[], Int32, Int32)

    Declaration
    public virtual void Write(char[] b, int off, int len)
    Parameters
    Type Name Description
    System.Char[] b
    System.Int32 off
    System.Int32 len
    | Improve this Doc View Source

    Write(Int32)

    Declaration
    public virtual void Write(int b)
    Parameters
    Type Name Description
    System.Int32 b
    | Improve this Doc View Source

    Write(String)

    Declaration
    public virtual void Write(string s)
    Parameters
    Type Name Description
    System.String s
    | Improve this Doc View Source

    Write(StringBuilder)

    Declaration
    public void Write(StringBuilder arr)
    Parameters
    Type Name Description
    System.Text.StringBuilder arr

    Explicit Interface Implementations

    | Improve this Doc View Source

    IAppendable.Append(ICharSequence)

    Declaration
    IAppendable IAppendable.Append(ICharSequence value)
    Parameters
    Type Name Description
    J2N.Text.ICharSequence value
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(ICharSequence, Int32, Int32)

    Declaration
    IAppendable IAppendable.Append(ICharSequence value, int startIndex, int count)
    Parameters
    Type Name Description
    J2N.Text.ICharSequence value
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(Char)

    Declaration
    IAppendable IAppendable.Append(char value)
    Parameters
    Type Name Description
    System.Char value
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(Char[])

    Declaration
    IAppendable IAppendable.Append(char[] value)
    Parameters
    Type Name Description
    System.Char[] value
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(Char[], Int32, Int32)

    Declaration
    IAppendable IAppendable.Append(char[] value, int startIndex, int count)
    Parameters
    Type Name Description
    System.Char[] value
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(String)

    Declaration
    IAppendable IAppendable.Append(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(String, Int32, Int32)

    Declaration
    IAppendable IAppendable.Append(string value, int startIndex, int count)
    Parameters
    Type Name Description
    System.String value
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(StringBuilder)

    Declaration
    IAppendable IAppendable.Append(StringBuilder value)
    Parameters
    Type Name Description
    System.Text.StringBuilder value
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    IAppendable.Append(StringBuilder, Int32, Int32)

    Declaration
    IAppendable IAppendable.Append(StringBuilder value, int startIndex, int count)
    Parameters
    Type Name Description
    System.Text.StringBuilder value
    System.Int32 startIndex
    System.Int32 count
    Returns
    Type Description
    J2N.Text.IAppendable
    | Improve this Doc View Source

    ICharSequence.HasValue

    Declaration
    bool ICharSequence.HasValue { get; }
    Returns
    Type Description
    System.Boolean

    Implements

    J2N.Text.IAppendable
    J2N.Text.ICharSequence
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.