| 256 | } |
| 257 | |
| 258 | DFHACK_EXPORT string DFHack::getClipboardTextCp437() { |
| 259 | if (!g_sdl_handle || g_SDL_HasClipboardText() != SDL_TRUE) |
| 260 | return ""; |
| 261 | char *text = tabs_to_spaces(g_SDL_GetClipboardText()); |
| 262 | string textcp437 = UTF2DF(normalize_newlines(text, true)); |
| 263 | DFHack::DFSDL::DFSDL_free(text); |
| 264 | return textcp437; |
| 265 | } |
| 266 | |
| 267 | DFHACK_EXPORT bool DFHack::getClipboardTextCp437Multiline(vector<string> * lines) { |
| 268 | CHECK_NULL_POINTER(lines); |
nothing calls this directly
no test coverage detected