Changeset 57226 in webkit for trunk/JavaScriptCore/pcre


Ignore:
Timestamp:
Apr 7, 2010, 1:32:13 PM (15 years ago)
Author:
[email protected]
Message:

2010-04-07 Kwang Yul Seo <[email protected]>

Reviewed by Darin Adler.

Replace isprint with isASCIIPrintable
https://bugs.webkit.org/show_bug.cgi?id=37223

WebKit does not use functions in <ctype.h> as they are dependent on the current
locale. Use the equivalent functions in <wtf/ASCIICType.h>. isASCIIPrintable
replaces isprint.

  • pcre/pcre_exec.cpp: (pchars):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_exec.cpp

    r50608 r57226  
    199199    while (length-- > 0) {
    200200        int c;
    201         if (isprint(c = *(p++)))
     201        if (isASCIIPrintable(c = *(p++)))
    202202            printf("%c", c);
    203203        else if (c < 256)
Note: See TracChangeset for help on using the changeset viewer.