MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / lookup

Method lookup

include/stringzilla/stringzilla.hpp:4168–4173  ·  view source on GitHub ↗

* @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 */

Source from the content-addressed store, hash-verified

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).

Callers 2

scope_assertFunction · 0.80
sz_lookupFunction · 0.80

Calls 3

sz_string_rangeFunction · 0.85
rawMethod · 0.80
sz_lookupFunction · 0.70

Tested by 1

scope_assertFunction · 0.64