Lines Matching defs:ansi
855 // Creates a UTF-16 wide string from the given ANSI string, allocating
859 LPCWSTR String::AnsiToUtf16(const char* ansi) {
860 if (!ansi) return NULL;
861 const int length = strlen(ansi);
863 MultiByteToWideChar(CP_ACP, 0, ansi, length,
866 MultiByteToWideChar(CP_ACP, 0, ansi, length,
872 // Creates an ANSI string from the given wide string, allocating
874 // value using delete[]. Returns the ANSI string, or NULL if the
881 char* ansi = new char[ansi_length + 1];
883 ansi, ansi_length, NULL, NULL);
884 ansi[ansi_length] = 0;
885 return ansi;
2571 // Returns the ANSI color code for the given color. COLOR_DEFAULT is