@brief Returns the number of bytes to represent an utf unit in the given encoding @param encoding The encoding @return number of bytes of the given encoding
| 41 | /// @param encoding The encoding |
| 42 | /// @return number of bytes of the given encoding |
| 43 | constexpr uint32_t StringEncodingGetSize(StringEncoding encoding) { return encoding == StringEncoding::Utf16 ? 2 : 1; } |
| 44 | |
| 45 | /// @brief An read-only view over a string (to avoid including @ref group_strings library when parsing is not needed). |
| 46 | /// The most common use case is to pass it in and out of OS API as is for file system paths. |
no outgoing calls