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.
Namespace: Lucene.Net.UtilAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static int ParseInt( char[] chars, int offset, int len, int radix ) |
Visual Basic |
---|
Public Shared Function ParseInt ( _ chars As Char(), _ offset As Integer, _ len As Integer, _ radix As Integer _ ) As Integer |
Visual C++ |
---|
public: static int ParseInt( array<wchar_t>^ chars, int offset, int len, int radix ) |
Parameters
- chars
- Type: array<System..::..Char>[]()[][]
a string representation of an int quantity.
- offset
- Type: System..::..Int32
[Missing <param name="offset"/> documentation for "M:Lucene.Net.Util.ArrayUtil.ParseInt(System.Char[],System.Int32,System.Int32,System.Int32)"]
- len
- Type: System..::..Int32
[Missing <param name="len"/> documentation for "M:Lucene.Net.Util.ArrayUtil.ParseInt(System.Char[],System.Int32,System.Int32,System.Int32)"]
- radix
- Type: System..::..Int32
the base to use for conversion.