MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ConvertFileEncoding

Method ConvertFileEncoding

source/TextIO.cpp:1198–1206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1196
1197
1198UINT Line::ConvertFileEncoding(ExprTokenType &aToken)
1199{
1200 if (TokenIsNumeric(aToken))
1201 {
1202 UINT cp = (UINT)TokenToInt64(aToken);
1203 return IsValidFileCodePage(cp) ? cp : -1;
1204 }
1205 return ConvertFileEncoding(TokenToString(aToken));
1206}
1207
1208
1209//

Callers

nothing calls this directly

Calls 3

TokenIsNumericFunction · 0.85
TokenToInt64Function · 0.85
TokenToStringFunction · 0.85

Tested by

no test coverage detected