Skip to content

Commit

Permalink
unicode : pass as cpts as const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Mar 11, 2024
1 parent af0621e commit 6ab22d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unicode.cpp
Expand Up @@ -1623,7 +1623,7 @@ std::string unicode_cpt_to_utf8(uint32_t cp) {
return result;
}

std::vector<uint32_t> unicode_cpts_normalize_nfd(std::vector<uint32_t> cpts) {
std::vector<uint32_t> unicode_cpts_normalize_nfd(const std::vector<uint32_t> & cpts) {
std::vector<uint32_t> result;
result.reserve(cpts.size());
for (size_t i = 0; i < cpts.size(); ++i) {
Expand Down

0 comments on commit 6ab22d2

Please sign in to comment.