Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Static Public Member Functions | Public Attributes | List of all members
Lucene.Net.Support.Number Class Reference

A simple class for number conversions. More...

Static Public Member Functions

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.
 

Public Attributes

const int MIN_RADIX = 2
 Min radix value.
 
const int MAX_RADIX = 36
 Max radix value.
 

Detailed Description

A simple class for number conversions.

Definition at line 30 of file Number.cs.

Member Function Documentation

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
bitsThe BitArray object.
fromIndexThe 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
sAn input System.String.
radixA 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
s
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
number
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
f
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
iA number to be converted.
radixA 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
numberNumber to operate on
bitsAmmount 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
numberNumber to operate on
bitsAmmount of bits to shift
Returns
The resulting number from the shift operation

Definition at line 189 of file Number.cs.

Member Data Documentation

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: