* @brief Maps all characters in the current string into the @p output buffer using the provided lookup @p table. * @param[in] output The buffer to write the transformed string into. * @sa sz_lookup */
| 4166 | * @sa sz_lookup |
| 4167 | */ |
| 4168 | void lookup(look_up_table const &table, pointer output) const noexcept { |
| 4169 | sz_ptr_t start; |
| 4170 | sz_size_t length; |
| 4171 | sz_string_range(&string_, &start, &length); |
| 4172 | sz_lookup((sz_ptr_t)output, (sz_size_t)length, (sz_cptr_t)start, (sz_cptr_t)table.raw()); |
| 4173 | } |
| 4174 | |
| 4175 | /** |
| 4176 | * @brief Count UTF-8 characters in the string (not bytes). |