Class CharVector
This class implements a simple char vector with access to the underlying array.
This class has been taken from the Apache FOP project (http://xmlgraphics.apache.org/fop/). They have been slightly modified.
Inheritance
System.Object
CharVector
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)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Compound.Hyphenation
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class CharVector
Constructors
| Improve this Doc View SourceCharVector()
Declaration
public CharVector()
CharVector(Char[])
Declaration
public CharVector(char[] a)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | a |
CharVector(Char[], Int32)
Declaration
public CharVector(char[] a, int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | a | |
System.Int32 | capacity |
CharVector(Int32)
Declaration
public CharVector(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Properties
| Improve this Doc View SourceArray
Declaration
public virtual char[] Array { get; }
Property Value
Type | Description |
---|---|
System.Char[] |
Capacity
returns current capacity of array
Declaration
public virtual int Capacity { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Item[Int32]
LUCENENET indexer for .NET
Declaration
public virtual char this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
System.Char |
Length
return number of items in array
Declaration
public virtual int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAlloc(Int32)
Declaration
public virtual int Alloc(int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | size |
Returns
Type | Description |
---|---|
System.Int32 |
Clear()
Reset Vector but don't resize or clear elements
Declaration
public virtual void Clear()
Clone()
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
System.Object |
TrimToSize()
Declaration
public virtual void TrimToSize()