File tree Expand file tree Collapse file tree
packages/react-native/ReactCommon/jsinspector-modern Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ namespace facebook::react::jsinspector_modern {
1515namespace {
1616// Vendored from Folly
1717// https://github.com/facebook/folly/blob/v2024.07.08.00/folly/detail/base64_detail/Base64Scalar.h
18- constexpr char kBase64Charset [] =
18+ constexpr std::string_view kBase64Charset =
1919 " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" ;
2020
21- constexpr char kBase64URLCharset [] =
21+ constexpr std::string_view kBase64URLCharset =
2222 " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" ;
2323
2424template <bool isURL>
2525struct Base64ScalarImpl {
2626 static constexpr const char * kCharset =
27- isURL ? kBase64URLCharset : kBase64Charset ;
27+ isURL ? kBase64URLCharset .data() : kBase64Charset .data() ;
2828
2929 // 0, 1 or 2 bytes
3030 static constexpr char * encodeTail (const char * f, const char * l, char * o) {
You can’t perform that action at this time.
0 commit comments