import { StringView } from "https://deno.land/x/structurae@4.0.1/index.ts";
Methods
Returns a new string consisting of the single UTF character located at the specified character index.
Returns the index of the first byte of a character.
Checks whether the provided encoded sequence is found inside the view.
Returns the index within the StringView of the first occurrence of the specified value, starting the search at start. Returns -1 if the value is not found.
Performs an in-place replacement within the StringView of all occurrences of a given pattern with a given replacement.
Returns a string of characters between the start and end character indexes, or to the end of the string.
Static Methods
Converts a UTF8 byte array into a JS string. Adopted from Google Closure: https://github.com/google/closure-library/blob/master/closure/goog/crypt/crypt.js
Converts a JS string into a UTF8 byte array. Adopted from Deno: https://github.com/denoland/deno/blob/18a684ab1c20914e13c27bc10e20bda6396ea38d/extensions/web/08_text_encoding.js#L79