Index: src/api.cc |
=================================================================== |
--- src/api.cc (revision 11074) |
+++ src/api.cc (working copy) |
@@ -3694,6 +3694,15 @@ |
} |
+bool String::MayContainNonAscii() const { |
+ i::Handle<i::String> str = Utils::OpenHandle(this); |
+ if (IsDeadCheck(str->GetIsolate(), "v8::String::MayContainNonAscii()")) { |
+ return 0; |
fschneider
2012/03/19 08:46:31
you mean "return false"?
Erik Corry
2012/03/19 09:51:02
Done.
|
+ } |
+ return !str->HasOnlyAsciiChars(); |
+} |
+ |
+ |
int String::WriteUtf8(char* buffer, |
int capacity, |
int* nchars_ref, |