Android Byte Array to Unicode Convert upperToLowerLatin(byte[] b)

Here you can find the source of upperToLowerLatin(byte[] b)

Description

upper To Lower Latin

Declaration

public static void upperToLowerLatin(byte[] b) 

Method Source Code

//package com.java2s;

public class Main {

    public static void upperToLowerLatin(byte[] b) {
        int len = b.length;
        for (int i = 0; i < len; i++) {
            int ch = b[i] & 0xff;
            if (ch == '\0') {
                break;
            } else if ((ch >= 0x41 && ch <= 0x5a)
                    || (ch >= 0xc0 && ch <= 0xd6)
                    || (ch >= 0xd8 && ch <= 0xde)) {
                b[i] = (byte) (ch + 0x20);
            }/*from w  w  w  . j a  v  a2s. c om*/
        }
    }
}

Related

  1. ushort2bytesBE(int val, byte[] b, int off)
  2. ushort2bytesLE(int val, byte[] b, int off)
  3. convertLongVowel(byte[] b)
  4. bcdToString(byte[] data, int offset, int length)
  5. upperToLower(byte[] b)
  6. tag2bytesBE(int tag, byte[] b, int off)
  7. tag2bytesLE(int tag, byte[] b, int off)
  8. parseToBnW(byte[] data, int length)