Skip to content

Commit

Permalink
Fix variable name (euphony-io#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
DahyeonWoo committed Sep 12, 2022
1 parent fb31718 commit 7e93232
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions euphony/src/main/cpp/core/charset/CharsetAutoSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ using namespace Euphony;

HexVector CharsetAutoSelector::select(std::string src) {

HexVector asciiCharset = ASCIICharset().encode(src);
HexVector defaultCharset = DefaultCharset().encode(src);
HexVector utf8Charset = UTF8Charset().encode(src);
HexVector utf16Charset = UTF16Charset().encode(src);
HexVector utf32Charset = UTF32Charset().encode(src);
HexVector asciiResult = ASCIICharset().encode(src);
HexVector defaultResult = DefaultCharset().encode(src);
HexVector utf8Result = UTF8Charset().encode(src);
HexVector utf16Result = UTF16Charset().encode(src);
HexVector utf32Result = UTF32Charset().encode(src);

HexVector results[] = {defaultCharset, asciiCharset, utf8Charset, utf16Charset, utf32Charset};
HexVector results[] = {asciiResult, defaultResult, utf8Result, utf16Result, utf32Result};

std::sort(results, results+5, [](HexVector& left, HexVector& right) {
return left.getSize() < right.getSize();
Expand Down

0 comments on commit 7e93232

Please sign in to comment.