Java Utililty Methods Char Array to Int

List of utility methods to do Char Array to Int

Description

The list of methods to do Char Array to Int are organized into topic(s).

Method

intcharArrayDecimalToInt(char[] str, int start, int len, int mul)
char Array Decimal To Int
int v = 0;
int f = 0;
int m = mul;
boolean p = false;
for (int i = start; i < start + len; i++) {
    int bit = -1;
    switch (str[i]) {
    case '0':
...
intcharArrayDigitToInt(char[] str, int start, int len)
char Array Digit To Int
int value = 0;
for (int i = start; i < start + len; i++) {
    value = value * 10;
    switch (str[i]) {
    case '0':
        value += 0x00;
        break;
    case '1':
...
intcharArrayHexToInt(char[] str, int start, int len)
char Array Hex To Int
int value = 0;
for (int i = start; i < start + len; i++) {
    value = value * 0x10;
    switch (str[i]) {
    case '0':
        value += 0x00;
        break;
    case '1':
...
intcharArrayToInt(char[] data, int start, int length, int[] end)
char Array To Int
boolean neg = false;
if (data[start] == '-') {
    neg = true;
    start++;
} else if (data[start] == '+') {
    start++;
int result = 0;
...
intcharsToInt(char[] chars, int offset)
chars To Int
int high = (chars[offset] << 16);
return high + chars[offset + 1];