summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/pcre/pcre_exec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/pcre/pcre_exec.cpp')
-rw-r--r--JavaScriptCore/pcre/pcre_exec.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/JavaScriptCore/pcre/pcre_exec.cpp b/JavaScriptCore/pcre/pcre_exec.cpp
index 8ca2eb4..f4899f2 100644
--- a/JavaScriptCore/pcre/pcre_exec.cpp
+++ b/JavaScriptCore/pcre/pcre_exec.cpp
@@ -88,7 +88,7 @@ public:
void add(const JSRegExp*, double);
private:
- typedef HashMap<RefPtr<UString::Rep>, double> Map;
+ typedef HashMap<RefPtr<StringImpl>, double> Map;
Map times;
};
@@ -198,7 +198,7 @@ static void pchars(const UChar* p, int length, bool isSubject, const MatchData&
length = md.endSubject - p;
while (length-- > 0) {
int c;
- if (isprint(c = *(p++)))
+ if (isASCIIPrintable(c = *(p++)))
printf("%c", c);
else if (c < 256)
printf("\\x%02x", c);
@@ -427,7 +427,7 @@ static inline void startNewGroup(MatchFrame* currentFrame)
}
// FIXME: "minimize" means "not greedy", we should invert the callers to ask for "greedy" to be less confusing
-static inline void repeatInformationFromInstructionOffset(short instructionOffset, bool& minimize, int& minimumRepeats, int& maximumRepeats)
+static inline void repeatInformationFromInstructionOffset(int instructionOffset, bool& minimize, int& minimumRepeats, int& maximumRepeats)
{
// Instruction offsets are based off of OP_CRSTAR, OP_STAR, OP_TYPESTAR, OP_NOTSTAR
static const char minimumRepeatsFromInstructionOffset[] = { 0, 0, 1, 1, 0, 0 };
@@ -2143,7 +2143,7 @@ Histogram::~Histogram()
size_t size = values.size();
printf("Regular Expressions, sorted by time spent evaluating them:\n");
for (size_t i = 0; i < size; ++i)
- printf(" %f - %s\n", values[size - i - 1].second, values[size - i - 1].first.UTF8String().c_str());
+ printf(" %f - %s\n", values[size - i - 1].second, values[size - i - 1].first.utf8().c_str());
}
void Histogram::add(const JSRegExp* re, double elapsedTime)
@@ -2157,7 +2157,7 @@ void Histogram::add(const JSRegExp* re, double elapsedTime)
if (re->options & MatchAcrossMultipleLinesOption)
string += " (multi-line)";
}
- pair<Map::iterator, bool> result = times.add(string.rep(), elapsedTime);
+ pair<Map::iterator, bool> result = times.add(string.impl(), elapsedTime);
if (!result.second)
result.first->second += elapsedTime;
}