Java String to SBC ToSBC(String input)

Here you can find the source of ToSBC(String input)

Description

To SBC

License

Open Source License

Declaration

public static String ToSBC(String input) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String ToSBC(String input) {
        char c[] = input.toCharArray();
        for (int i = 0; i < c.length; i++) {
            if (c[i] == ' ') {
                c[i] = '\u3000';
            } else if (c[i] < '\177') {
                c[i] = (char) (c[i] + 65248);
            }//from  w  w w  .ja  v a  2s.  co m
        }
        return new String(c);
    }
}

Related

  1. toSBC(String input)
  2. toSBC(String s)