PrevUpHomeNext

utx::wstr_rep


utx::wstr_rep

utx::wstr_rep is a template class alias, used to replace a sub-string of a wide-string to another sub-string.

constructor

Calling Sig:

auto rep = utx::str_rep{a_string_view};

Default constructor is removed, as it must hold a string_view.

str_rep_class() = delete;

Method: .replace

Replace all sub-string found to another sub-string.

This member function will not affect the original string held in the object.

Calling Sig:

auto result_string = rep.replace(a_sub_strinng, another_sub_string);

Method: .replace_first

Replace the first found sub-string to another sub-string.

This member function will not affect the original string held in the object.

Calling Sig:

auto result_string = rep.replace_first(a_sub_string, another_sub_string);

Method: .replace_last

Replace the last found sub-string to another sub-string.

This member function will not affect the original string held in the object.

Calling Sig:

auto result_string = rep.replace_last(a_sub_string, another_sub_string);

Method: .replace_at

Replace a sub-string found by index__~th to another sub-string.

This member function will not affect the original string held in the object.

Calling Sig:

auto result_string = rep.replace_at(index__, a_sub_string, another_sub_string);

Method: .r_replace_at

Reverse-replace a sub-string found by index__~th to another sub-string.

This member function will not affect the original string held in the object.

Calling Sig:

auto result_string = rep.r_replace_at(index__, a_sub_string, another_sub_string);

See Also

utx::str_rep


PrevUpHomeNext

utx::print

esv::print