Methods for manipulating arrays.
More...
|
static int | ParseInt (char[] chars) |
| Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity.
|
|
static int | ParseInt (char[] chars, int offset, int len) |
| Parses a char array into an int.
|
|
static int | ParseInt (char[] chars, int offset, int len, int radix) |
| Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity. The second argument specifies the radix to use when parsing the value.
|
|
static int | GetNextSize (int targetSize) |
|
static int | GetShrinkSize (int currentSize, int targetSize) |
|
static int[] | Grow (int[] array, int minSize) |
|
static int[] | Grow (int[] array) |
|
static int[] | Shrink (int[] array, int targetSize) |
|
static long[] | Grow (long[] array, int minSize) |
|
static long[] | Grow (long[] array) |
|
static long[] | Shrink (long[] array, int targetSize) |
|
static byte[] | Grow (byte[] array, int minSize) |
|
static byte[] | Grow (byte[] array) |
|
static byte[] | Shrink (byte[] array, int targetSize) |
|
static int | HashCode (char[] array, int start, int end) |
| Returns hash of chars in range start (inclusive) to end (inclusive)
|
|
static int | HashCode (byte[] array, int start, int end) |
| Returns hash of chars in range start (inclusive) to end (inclusive)
|
|
Methods for manipulating arrays.
Definition at line 24 of file ArrayUtil.cs.
static int Lucene.Net.Util.ArrayUtil.GetNextSize |
( |
int |
targetSize | ) |
|
|
static |
static int Lucene.Net.Util.ArrayUtil.GetShrinkSize |
( |
int |
currentSize, |
|
|
int |
targetSize |
|
) |
| |
|
static |
static int [] Lucene.Net.Util.ArrayUtil.Grow |
( |
int[] |
array, |
|
|
int |
minSize |
|
) |
| |
|
static |
static int [] Lucene.Net.Util.ArrayUtil.Grow |
( |
int[] |
array | ) |
|
|
static |
static long [] Lucene.Net.Util.ArrayUtil.Grow |
( |
long[] |
array, |
|
|
int |
minSize |
|
) |
| |
|
static |
static long [] Lucene.Net.Util.ArrayUtil.Grow |
( |
long[] |
array | ) |
|
|
static |
static byte [] Lucene.Net.Util.ArrayUtil.Grow |
( |
byte[] |
array, |
|
|
int |
minSize |
|
) |
| |
|
static |
static byte [] Lucene.Net.Util.ArrayUtil.Grow |
( |
byte[] |
array | ) |
|
|
static |
static int Lucene.Net.Util.ArrayUtil.HashCode |
( |
char[] |
array, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
static |
Returns hash of chars in range start (inclusive) to end (inclusive)
Definition at line 263 of file ArrayUtil.cs.
static int Lucene.Net.Util.ArrayUtil.HashCode |
( |
byte[] |
array, |
|
|
int |
start, |
|
|
int |
end |
|
) |
| |
|
static |
Returns hash of chars in range start (inclusive) to end (inclusive)
Definition at line 274 of file ArrayUtil.cs.
static int Lucene.Net.Util.ArrayUtil.ParseInt |
( |
char[] |
chars | ) |
|
|
static |
Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity.
- Parameters
-
chars | a string representation of an int quantity. |
- Returns
- int the value represented by the argument
<throws> NumberFormatException if the argument could not be parsed as an int quantity. </throws>
Definition at line 43 of file ArrayUtil.cs.
static int Lucene.Net.Util.ArrayUtil.ParseInt |
( |
char[] |
chars, |
|
|
int |
offset, |
|
|
int |
len |
|
) |
| |
|
static |
Parses a char array into an int.
- Parameters
-
chars | the character array |
offset | The offset into the array |
len | The length |
- Returns
- the int
<throws> NumberFormatException if it can't parse </throws>
Definition at line 58 of file ArrayUtil.cs.
static int Lucene.Net.Util.ArrayUtil.ParseInt |
( |
char[] |
chars, |
|
|
int |
offset, |
|
|
int |
len, |
|
|
int |
radix |
|
) |
| |
|
static |
Parses the string argument as if it was an int value and returns the result. Throws NumberFormatException if the string does not represent an int quantity. The second argument specifies the radix to use when parsing the value.
- Parameters
-
chars | a string representation of an int quantity. |
offset | |
len | |
radix | the base to use for conversion. |
- Returns
- int the value represented by the argument
<throws> NumberFormatException if the argument could not be parsed as an int quantity. </throws>
Definition at line 78 of file ArrayUtil.cs.
static int [] Lucene.Net.Util.ArrayUtil.Shrink |
( |
int[] |
array, |
|
|
int |
targetSize |
|
) |
| |
|
static |
static long [] Lucene.Net.Util.ArrayUtil.Shrink |
( |
long[] |
array, |
|
|
int |
targetSize |
|
) |
| |
|
static |
static byte [] Lucene.Net.Util.ArrayUtil.Shrink |
( |
byte[] |
array, |
|
|
int |
targetSize |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: