소스 검색

Avoid isascii() & toascii()

main
PaulStoffregen 5 년 전
부모
커밋
a8046bbbad
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      teensy4/WCharacter.h

+ 2
- 2
teensy4/WCharacter.h 파일 보기

// that fits into the ASCII character set. // that fits into the ASCII character set.
inline boolean isAscii(int c) inline boolean isAscii(int c)
{ {
return ( isascii (c) == 0 ? false : true);
return ((c & ~0x7F) != 0 ? false : true);
} }




// ASCII character set, by clearing the high-order bits. // ASCII character set, by clearing the high-order bits.
inline int toAscii(int c) inline int toAscii(int c)
{ {
return toascii (c);
return (c & 0x7F);
} }





Loading…
취소
저장