zCharToChar static method

String zCharToChar(
  1. int c
)

Implementation

static String zCharToChar(int c) {
  final s = StringBuffer();
  if (c == 0) {
    return '';
  } else if (c == 9) {
    //version 6 only but it's okay to be relaxed here.
    return '\t';
  } else if (c == 11) {
    //version 6 only but it's okay to be relaxed here.
    return "  ";
  } else if (c == 13) {
    return '\n';
  } else if (c >= 32 && c <= 126) {
    s.writeCharCode(c);
    return s.toString();
  } else if (c >= 155 && c <= 223) {
    s.writeCharCode(unicodeTranslations[c]!);
    return s.toString();
  }

  return '';
}