| 43 | static TextDecodeResult decodePointSlowPath( std::string_view view ); |
| 44 | |
| 45 | static inline TextDecodeResult decodePoint( std::string_view view ) { |
| 46 | if ( view.size() > 0 ) { |
| 47 | Uint8 first = view[0]; |
| 48 | if ( first < 0x80 ) { |
| 49 | return { first, TextDecodeResult::Status::Valid, 1 }; |
| 50 | } |
| 51 | } |
| 52 | return decodePointSlowPath( view ); |
| 53 | } |
| 54 | }; |
| 55 | |
| 56 | //------------------------------------------------------------------- |