mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
ddb8cb7cf0
Reviewed By: javache Differential Revision: D3950748 fbshipit-source-id: 6315ea07f3217b485aeb4374b5f6e36333957848
18 lines
334 B
C++
18 lines
334 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#include "JSCUtils.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
String jsStringFromBigString(const JSBigString& bigstr) {
|
|
if (bigstr.isAscii()) {
|
|
return String::createExpectingAscii(bigstr.c_str(), bigstr.size());
|
|
} else {
|
|
return String(bigstr.c_str());
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|