Java Utililty Methods String to SBC

List of utility methods to do String to SBC

Description

The list of methods to do String to SBC are organized into topic(s).

Method

StringtoSBC(String input)
to SBC
if (input == null || input == "") {
    return "";
char c[] = input.toCharArray();
for (int i = 0; i < c.length; i++) {
    if (c[i] == ' ') {
        c[i] = '\u3000';
    } else if (c[i] < '\177') {
...
StringToSBC(String input)
To SBC
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);
return new String(c);
StringtoSBC(String s)
to SBC
if (isEmpty(s))
    return s;
char[] chars = s.toCharArray();
for (int i = 0, len = chars.length; i < len; i++) {
    if (chars[i] == ' ') {
        chars[i] = (char) 12288;
    } else if (33 <= chars[i] && chars[i] <= 126) {
        chars[i] = (char) (chars[i] + 65248);
...