A simple class for number conversions.
More...
|
static System.String | ToString (long number) |
| Converts a number to System.String.
|
|
static System.String | ToString (float f) |
| Converts a number to System.String.
|
|
static System.String | ToString (long i, int radix) |
| Converts a number to System.String in the specified radix.
|
|
static long | Parse (System.String s, int radix) |
| Parses a number in the specified radix.
|
|
static int | URShift (int number, int bits) |
| Performs an unsigned bitwise right shift with the specified number
|
|
static long | URShift (long number, int bits) |
| Performs an unsigned bitwise right shift with the specified number
|
|
static int | NextSetBit (System.Collections.BitArray bits, int fromIndex) |
| Returns the index of the first bit that is set to true that occurs on or after the specified starting index. If no such bit exists then -1 is returned.
|
|
static long | ToInt64 (System.String s) |
| Converts a System.String number to long.
|
|
A simple class for number conversions.
Definition at line 30 of file Number.cs.
static int Lucene.Net.Support.Number.NextSetBit |
( |
System.Collections.BitArray |
bits, |
|
|
int |
fromIndex |
|
) |
| |
|
static |
Returns the index of the first bit that is set to true that occurs on or after the specified starting index. If no such bit exists then -1 is returned.
- Parameters
-
bits | The BitArray object. |
fromIndex | The index to start checking from (inclusive). |
- Returns
- The index of the next set bit.
Definition at line 203 of file Number.cs.
static long Lucene.Net.Support.Number.Parse |
( |
System.String |
s, |
|
|
int |
radix |
|
) |
| |
|
static |
Parses a number in the specified radix.
- Parameters
-
s | An input System.String. |
radix | A radix. |
- Returns
- The parsed number in the specified radix.
Definition at line 135 of file Number.cs.
static long Lucene.Net.Support.Number.ToInt64 |
( |
System.String |
s | ) |
|
|
static |
Converts a System.String number to long.
- Parameters
-
- Returns
Definition at line 220 of file Number.cs.
static System.String Lucene.Net.Support.Number.ToString |
( |
long |
number | ) |
|
|
static |
Converts a number to System.String.
- Parameters
-
- Returns
Definition at line 49 of file Number.cs.
static System.String Lucene.Net.Support.Number.ToString |
( |
float |
f | ) |
|
|
static |
Converts a number to System.String.
- Parameters
-
- Returns
Definition at line 82 of file Number.cs.
static System.String Lucene.Net.Support.Number.ToString |
( |
long |
i, |
|
|
int |
radix |
|
) |
| |
|
static |
Converts a number to System.String in the specified radix.
- Parameters
-
i | A number to be converted. |
radix | A radix. |
- Returns
- A System.String representation of the number in the specified redix.
Definition at line 100 of file Number.cs.
static int Lucene.Net.Support.Number.URShift |
( |
int |
number, |
|
|
int |
bits |
|
) |
| |
|
static |
Performs an unsigned bitwise right shift with the specified number
- Parameters
-
number | Number to operate on |
bits | Ammount of bits to shift |
- Returns
- The resulting number from the shift operation
Definition at line 177 of file Number.cs.
static long Lucene.Net.Support.Number.URShift |
( |
long |
number, |
|
|
int |
bits |
|
) |
| |
|
static |
Performs an unsigned bitwise right shift with the specified number
- Parameters
-
number | Number to operate on |
bits | Ammount of bits to shift |
- Returns
- The resulting number from the shift operation
Definition at line 189 of file Number.cs.
const int Lucene.Net.Support.Number.MAX_RADIX = 36 |
Max radix value.
Definition at line 39 of file Number.cs.
const int Lucene.Net.Support.Number.MIN_RADIX = 2 |
Min radix value.
Definition at line 35 of file Number.cs.
The documentation for this class was generated from the following file: