Method Reinit
Reinit(Char[], Int32, Int32, Int32, Int32, String)
Shorthand for calling Clear(), CopyBuffer(Char[], Int32, Int32), SetOffset(Int32, Int32), Type (set)
Declaration
public virtual Token Reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, string newType)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | newTermBuffer | |
System.Int32 | newTermOffset | |
System.Int32 | newTermLength | |
System.Int32 | newStartOffset | |
System.Int32 | newEndOffset | |
System.String | newType |
Returns
Type | Description |
---|---|
Token | this Token instance |
Reinit(Char[], Int32, Int32, Int32, Int32)
Shorthand for calling Clear(), CopyBuffer(Char[], Int32, Int32), SetOffset(Int32, Int32), Type (set) on DEFAULT_TYPE
Declaration
public virtual Token Reinit(char[] newTermBuffer, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | newTermBuffer | |
System.Int32 | newTermOffset | |
System.Int32 | newTermLength | |
System.Int32 | newStartOffset | |
System.Int32 | newEndOffset |
Returns
Type | Description |
---|---|
Token | this Token instance |
Reinit(String, Int32, Int32, String)
Shorthand for calling Clear(), Append(String), SetOffset(Int32, Int32), Type (set)
Declaration
public virtual Token Reinit(string newTerm, int newStartOffset, int newEndOffset, string newType)
Parameters
Type | Name | Description |
---|---|---|
System.String | newTerm | |
System.Int32 | newStartOffset | |
System.Int32 | newEndOffset | |
System.String | newType |
Returns
Type | Description |
---|---|
Token | this Token instance |
Reinit(String, Int32, Int32, Int32, Int32, String)
Shorthand for calling Clear(), Append(String, Int32, Int32), SetOffset(Int32, Int32), Type (set)
Declaration
public virtual Token Reinit(string newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset, string newType)
Parameters
Type | Name | Description |
---|---|---|
System.String | newTerm | |
System.Int32 | newTermOffset | |
System.Int32 | newTermLength | |
System.Int32 | newStartOffset | |
System.Int32 | newEndOffset | |
System.String | newType |
Returns
Type | Description |
---|---|
Token | this Token instance |
Reinit(String, Int32, Int32)
Shorthand for calling Clear(), Append(String), SetOffset(Int32, Int32), Type (set) on DEFAULT_TYPE
Declaration
public virtual Token Reinit(string newTerm, int newStartOffset, int newEndOffset)
Parameters
Type | Name | Description |
---|---|---|
System.String | newTerm | |
System.Int32 | newStartOffset | |
System.Int32 | newEndOffset |
Returns
Type | Description |
---|---|
Token | this Token instance |
Reinit(String, Int32, Int32, Int32, Int32)
Shorthand for calling Clear(), Append(String, Int32, Int32), SetOffset(Int32, Int32), Type (set) on DEFAULT_TYPE
Declaration
public virtual Token Reinit(string newTerm, int newTermOffset, int newTermLength, int newStartOffset, int newEndOffset)
Parameters
Type | Name | Description |
---|---|---|
System.String | newTerm | |
System.Int32 | newTermOffset | |
System.Int32 | newTermLength | |
System.Int32 | newStartOffset | |
System.Int32 | newEndOffset |
Returns
Type | Description |
---|---|
Token | this Token instance |
Reinit(Token)
Copy the prototype token's fields into this one. Note: Payloads are shared.
Declaration
public virtual void Reinit(Token prototype)
Parameters
Type | Name | Description |
---|---|---|
Token | prototype | source Token to copy fields from |
Reinit(Token, String)
Copy the prototype token's fields into this one, with a different term. Note: Payloads are shared.
Declaration
public virtual void Reinit(Token prototype, string newTerm)
Parameters
Type | Name | Description |
---|---|---|
Token | prototype | existing Token |
System.String | newTerm | new term text |
Reinit(Token, Char[], Int32, Int32)
Copy the prototype token's fields into this one, with a different term. Note: Payloads are shared.
Declaration
public virtual void Reinit(Token prototype, char[] newTermBuffer, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
Token | prototype | existing Token |
System.Char[] | newTermBuffer | buffer containing new term text |
System.Int32 | offset | the index in the buffer of the first character |
System.Int32 | length | number of valid characters in the buffer |