isWinAnsiSafe static method

bool isWinAnsiSafe(
  1. String text
)

Implementation

static bool isWinAnsiSafe(String text) {
  for (final int code in text.codeUnits) {
    if (code > 0xFF) return false;
    if (code < 0x20 && code != 0x0A) return false;
  }
  return true;
}