| 53 | #endif |
| 54 | |
| 55 | static StringSpan nativeSpan(const native_char_t* text, size_t length, bool nullTerminated = false) |
| 56 | { |
| 57 | #if SC_PLATFORM_WINDOWS |
| 58 | return StringSpan({text, length}, nullTerminated, StringEncoding::Native); |
| 59 | #else |
| 60 | return StringSpan({text, length}, nullTerminated, StringEncoding::Native); |
| 61 | #endif |
| 62 | } |
| 63 | |
| 64 | static size_t nativeLength(StringSpan view) { return view.sizeInBytes() / sizeof(native_char_t); } |
| 65 |
no test coverage detected