summaryrefslogtreecommitdiff
path: root/comm/OLD/TextStream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'comm/OLD/TextStream.cc')
-rw-r--r--comm/OLD/TextStream.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/comm/OLD/TextStream.cc b/comm/OLD/TextStream.cc
index 117c3ae..65f461c 100644
--- a/comm/OLD/TextStream.cc
+++ b/comm/OLD/TextStream.cc
@@ -140,11 +140,11 @@ UchTextWord :: GetQuotes () const
return ""; /* no quotes */
if (! *Sval)
return "\'\'"; /* empty string */
- if (index (Sval, ' ') == 0)
+ if (strchr (Sval, ' ') == 0)
return ""; /* no quotes */
- if (index (Sval, '\'') == 0)
+ if (strchr (Sval, '\'') == 0)
return "\'\'"; /* 'hello' */
- if (index (Sval, '\"') == 0)
+ if (strchr (Sval, '\"') == 0)
return "\"\""; /* "hello" */
return 0; /* cannot quote */
}
@@ -211,7 +211,7 @@ UchTextLine :: Parse (char* line)
for (; *s; s++) {
switch (where) {
case IN_WORD:
- if (index (" \t(),", *s)) {
+ if (strchr (" \t(),", *s)) {
*s = '\0';
where = IN_SPACE;
AddWord (word);
@@ -231,7 +231,7 @@ UchTextLine :: Parse (char* line)
where = IN_QUOTE;
word = s+1;
} else
- if (index (" \t(),", *s)) {
+ if (strchr (" \t(),", *s)) {
*s = '\0';
} else {
where = IN_WORD;