Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

isAscii: avoid dependency on _GNU_SOURCE#176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
facchinm merged 5 commits intomasterfrompatch_isascii
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletionsapi/WCharacter.h
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,7 +63,7 @@ inline bool isAlpha(int c)
// that fits into the ASCII character set.
inline bool isAscii(int c)
{
return ( isascii (c) == 0 ? false : true);
return ((c & ~0x7f) != 0 ? false : true);
}


Expand DownExpand Up@@ -145,7 +145,7 @@ inline bool isHexadecimalDigit(int c)
// ASCII character set, by clearing the high-order bits.
inline int toAscii(int c)
{
returntoascii (c);
return(c & 0x7f);
}


Expand Down
4 changes: 3 additions & 1 deletiontest/CMakeLists.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,7 +10,7 @@ project(test-ArduinoCore-API)

include_directories(../api)
include_directories(include)
include_directories(external/catch/v2.13.1/include)
include_directories(external/catch/v2.13.9/include)

##########################################################################

Expand DownExpand Up@@ -81,6 +81,7 @@ set(TEST_SRCS
src/String/test_toLowerCase.cpp
src/String/test_toUpperCase.cpp
src/String/test_trim.cpp
src/WCharacter/test_isAscii.cpp
src/WCharacter/test_isControl.cpp
src/WCharacter/test_isDigit.cpp
src/WCharacter/test_isHexadecimalDigit.cpp
Expand All@@ -89,6 +90,7 @@ set(TEST_SRCS
src/WCharacter/test_isSpace.cpp
src/WCharacter/test_isUpperCase.cpp
src/WCharacter/test_isWhitespace.cpp
src/WCharacter/test_toAscii.cpp
)

set(TEST_DUT_SRCS
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp