Lines Matching defs:ansi
828 // Creates a UTF-16 wide string from the given ANSI string, allocating
832 LPCWSTR String::AnsiToUtf16(const char* ansi) {
833 if (!ansi) return NULL;
834 const int length = strlen(ansi);
836 MultiByteToWideChar(CP_ACP, 0, ansi, length,
839 MultiByteToWideChar(CP_ACP, 0, ansi, length,
845 // Creates an ANSI string from the given wide string, allocating
847 // value using delete[]. Returns the ANSI string, or NULL if the
854 char* ansi = new char[ansi_length + 1];
856 ansi, ansi_length, NULL, NULL);
857 ansi[ansi_length] = 0;
858 return ansi;
2566 // Returns the ANSI color code for the given color. COLOR_DEFAULT is