#pragma once namespace nall { template auto vector::append(const string& data, P&&... p) -> type& { vector_base::append(data); append(forward

(p)...); return *this; } auto vector::append() -> type& { return *this; } auto vector::isort() -> type& { sort([](const string& x, const string& y) { return memory::icompare(x.data(), x.size(), y.data(), y.size()) < 0; }); return *this; } auto vector::find(string_view source) const -> maybe { for(uint n = 0; n < size(); n++) { if(operator[](n).equals(source)) return n; } return {}; } auto vector::ifind(string_view source) const -> maybe { for(uint n = 0; n < size(); n++) { if(operator[](n).iequals(source)) return n; } return {}; } auto vector::match(string_view pattern) const -> vector { vector result; for(uint n = 0; n < size(); n++) { if(operator[](n).match(pattern)) result.append(operator[](n)); } return result; } auto vector::merge(string_view separator) const -> string { string output; for(uint n = 0; n < size(); n++) { output.append(operator[](n)); if(n < size() - 1) output.append(separator.data()); } return output; } auto vector::strip() -> type& { for(uint n = 0; n < size(); n++) { operator[](n).strip(); } return *this; } }