Android Key Create katakanaToHiragana(byte[] b)

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

Description

katakana To Hiragana

Declaration

public static void katakanaToHiragana(byte[] b) 

Method Source Code

//package com.java2s;

public class Main {

    public static void katakanaToHiragana(byte[] b) {
        int len = b.length;
        if ((len & 1) == 1) {
            b[len - 1] = '\0';
            len--;//www  . ja va  2s  . c  o  m
        }
        for (int i = 0; i < len; i += 2) {
            int high = b[i] & 0xff;
            int low = b[i + 1] & 0xff;
            if (high == '\0' || low == '\0') {
                break;
            } else if (high == 0x25 && (low >= 0x21 && low <= 0x76)) {
                b[i] = (byte) 0x24;
            }
        }
    }
}

Related

  1. generateSymmetricKey()
  2. getCipherFromPassphrase(String passphrase, byte[] salt, int iterations, int opMode)
  3. getCipherFromPassphrase(String passphrase, byte[] salt, int opMode)
  4. getMacForPassphrase(String passphrase, byte[] salt)
  5. getMacForPassphrase(String passphrase, byte[] salt, int iterations)