summaryrefslogtreecommitdiff
path: root/StdLib/LibC/Ctype
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/LibC/Ctype')
-rw-r--r--StdLib/LibC/Ctype/CClass.c20
-rw-r--r--StdLib/LibC/Ctype/iCtype.c4
2 files changed, 21 insertions, 3 deletions
diff --git a/StdLib/LibC/Ctype/CClass.c b/StdLib/LibC/Ctype/CClass.c
index 1e1e0fdccb..b9658441ae 100644
--- a/StdLib/LibC/Ctype/CClass.c
+++ b/StdLib/LibC/Ctype/CClass.c
@@ -234,7 +234,7 @@ isblank(
IN int c
)
{
- return (__isCClass( c, _CB));
+ return (__isCClass( c, (_CB)));
}
/** The isascii function tests that a character is one of the 128 7-bit ASCII characters.
@@ -251,3 +251,21 @@ isascii(
{
return ((c >= 0) && (c < 128));
}
+
+/** Test whether a character is one of the characters used as a separator
+ between directory elements in a path.
+
+ Characters are '/', '\\'
+
+ This non-standard function is unique to this implementation.
+
+ @param[in] c The character to be tested.
+
+ @return Returns nonzero (true) if and only if the value of the parameter c
+ can be classified as specified in the description of the function.
+**/
+int
+isDirSep(int c)
+{
+ return (__isCClass( c, (_C0)));
+}
diff --git a/StdLib/LibC/Ctype/iCtype.c b/StdLib/LibC/Ctype/iCtype.c
index 6b289bf2f2..b40a65d1ff 100644
--- a/StdLib/LibC/Ctype/iCtype.c
+++ b/StdLib/LibC/Ctype/iCtype.c
@@ -57,7 +57,7 @@ const UINT16 _C_CharClassTable[128] = {
/* 24 '$' */ ( _CP | _CG ),
/* 25 '%' */ ( _CP | _CG ),
/* 26 '&' */ ( _CP | _CG ),
- /* 27 '\''*/ ( _CP | _CG ),
+ /* 27 '\''*/ ( _CP | _CG | _C0 ),
/* 28 '(' */ ( _CP | _CG ),
/* 29 ')' */ ( _CP | _CG ),
/* 2A '*' */ ( _CP | _CG ),
@@ -65,7 +65,7 @@ const UINT16 _C_CharClassTable[128] = {
/* 2C ',' */ ( _CP | _CG ),
/* 2D '-' */ ( _CP | _CG ),
/* 2E '.' */ ( _CP | _CG ),
- /* 2F '/' */ ( _CP | _CG ),
+ /* 2F '/' */ ( _CP | _CG | _C0 ),
/* 30 '0' */ ( _CD | _CG ),
/* 31 '1' */ ( _CD | _CG ),
/* 32 '2' */ ( _CD | _CG ),