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
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class CharVector : object
Constructors
|
Improve this Doc
View Source
CharVector()
Declaration
|
Improve this Doc
View Source
CharVector(Char[])
Declaration
public CharVector(char[] a)
Parameters
Type |
Name |
Description |
System.Char[] |
a |
|
|
Improve this Doc
View Source
CharVector(Char[], Int32)
Declaration
public CharVector(char[] a, int capacity)
Parameters
Type |
Name |
Description |
System.Char[] |
a |
|
System.Int32 |
capacity |
|
|
Improve this Doc
View Source
CharVector(Int32)
Declaration
public CharVector(int capacity)
Parameters
Type |
Name |
Description |
System.Int32 |
capacity |
|
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
returns current capacity of array
Declaration
public virtual int Capacity { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
Length
return number of items in array
Declaration
public virtual int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Alloc(Int32)
Declaration
public virtual int Alloc(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Clear()
Reset Vector but don't resize or clear elements
Declaration
public virtual void Clear()
|
Improve this Doc
View Source
Clone()
Declaration
public virtual object Clone()
Returns
Type |
Description |
System.Object |
|
|
Improve this Doc
View Source
TrimToSize()
Declaration
public virtual void TrimToSize()