The R Project SVN R

Rev

Rev 73911 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73911 Rev 73928
Line 196... Line 196...
196
int tre_isdigit_func(tre_cint_t c) { return tre_isdigit(c); }
196
int tre_isdigit_func(tre_cint_t c) { return tre_isdigit(c); }
197
int tre_isgraph_func(tre_cint_t c) { return tre_isgraph(c); }
197
int tre_isgraph_func(tre_cint_t c) { return tre_isgraph(c); }
198
int tre_islower_func(tre_cint_t c) { return tre_islower(c); }
198
int tre_islower_func(tre_cint_t c) { return tre_islower(c); }
199
int tre_isprint_func(tre_cint_t c)
199
int tre_isprint_func(tre_cint_t c)
200
{
200
{
-
 
201
#ifdef TRE_WCHAR
-
 
202
  /* Windows has \t as printable via iswprint in all locales. By POSIX
-
 
203
     and ?regex, we need \t to be non-printable in the C locale, so we
-
 
204
     cannot use iswprint. By C99, iswprint(L'\t') should be the same as
-
 
205
     isprint('\t'). In Windows, in C locale, isprint('\t') is false, 
-
 
206
     hence this workaround. */
-
 
207
    if (c == L'\t') return isprint('\t');
-
 
208
#endif
201
  return c != '\t' && tre_isprint(c); /* Windows has \t as printable */
209
  return tre_isprint(c); /* Windows has \t as printable */
202
}
210
}
203
int tre_ispunct_func(tre_cint_t c) { return tre_ispunct(c); }
211
int tre_ispunct_func(tre_cint_t c) { return tre_ispunct(c); }
204
int tre_isspace_func(tre_cint_t c) { return tre_isspace(c); }
212
int tre_isspace_func(tre_cint_t c) { return tre_isspace(c); }
205
int tre_isupper_func(tre_cint_t c) { return tre_isupper(c); }
213
int tre_isupper_func(tre_cint_t c) { return tre_isupper(c); }
206
int tre_isxdigit_func(tre_cint_t c) { return tre_isxdigit(c); }
214
int tre_isxdigit_func(tre_cint_t c) { return tre_isxdigit(c); }