ascii 0.0.2 copy "ascii: ^0.0.2" to clipboard
ascii: ^0.0.2 copied to clipboard

outdatedDart 1 only

Easy access to the ASCII symbols by their names. Also includes information about decimal and hexadecimal codes.

ascii #

Easy access to the ASCII symbols by their names. Also includes information about decimal and hexadecimal codes.

import "package:ascii/ascii.dart";

void main() {
  var c = 32;
  // By code
  if (c >= 48 && c <= 57) {
  }
  if (c >= 65 && c <= 90) {
  }
  if (c == 27) {
  }
  if (c == 91) {
  }
  if (c == 36) {
  }

  // By name
  if (c >= Ascii.NUMBER_0 && c <= Ascii.NUMBER_9) {
  }
  if (c >= Ascii.A && c <= Ascii.Z) {
  }
  if (c == Ascii.ESC) {
  }
  if (c == Ascii.LEFT_SQUARE_BRACKET) {
  }
  if (c == Ascii.DOLLAR_SIGN) {
  }
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Easy access to the ASCII symbols by their names. Also includes information about decimal and hexadecimal codes.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on ascii