Skip to content

Commit

Permalink
Update utility/ again. Don't use isdigit() or isspsace().
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Dec 1, 2020
1 parent aa43bb5 commit 095ed09
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions src/stores/objectStore.C
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ findSeqStorePath(char *requested) {
(filename[3] != 'b') ||
(filename[4] != 's') ||
(filename[5] != '.') ||
(isdigit(filename[6]) == 0) ||
(isdigit(filename[7]) == 0) ||
(isdigit(filename[8]) == 0) ||
(isdigit(filename[9]) == 0))
(isDecDigit(filename[6]) == false) ||
(isDecDigit(filename[7]) == false) ||
(isDecDigit(filename[8]) == false) ||
(isDecDigit(filename[9]) == false))
return(NULL);

// Now just paste the two components together in the proper
Expand Down Expand Up @@ -86,14 +86,14 @@ findOvlStorePath(char *requested) {
// This format is defined in ovFile::createDataName() in ovStoreFile.C

if ((strlen(filename) != 8) ||
(isdigit(filename[0]) == 0) ||
(isdigit(filename[1]) == 0) ||
(isdigit(filename[2]) == 0) ||
(isdigit(filename[3]) == 0) ||
(isDecDigit(filename[0]) == false) ||
(isDecDigit(filename[1]) == false) ||
(isDecDigit(filename[2]) == false) ||
(isDecDigit(filename[3]) == false) ||
(filename[4] != '-') ||
(isdigit(filename[5]) == 0) ||
(isdigit(filename[6]) == 0) ||
(isdigit(filename[7]) == 0))
(isDecDigit(filename[5]) == false) ||
(isDecDigit(filename[6]) == false) ||
(isDecDigit(filename[7]) == false))
return(NULL);

// Get ready for some ugly string parsing. We expect strings similar to:
Expand Down
2 changes: 1 addition & 1 deletion src/stores/sqLibrary.H
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public:
if (*orig == '/') {
_libraryName[lp++] = '_';

} else if (isspace(*orig) == 0) {
} else if (isWhiteSpace(*orig) == false) {
_libraryName[lp++] = *orig;

} else {
Expand Down

0 comments on commit 095ed09

Please sign in to comment.