| 391 | } |
| 392 | |
| 393 | void Clipboard_GetText(cc_string* value) { |
| 394 | if (!be_clipboard->Lock()) return; |
| 395 | |
| 396 | BMessage* clip = be_clipboard->Data(); |
| 397 | char* str = NULL; |
| 398 | ssize_t str_len = 0; |
| 399 | |
| 400 | clip->FindData("text/plain", B_MIME_TYPE, (const void**)&str, &str_len); |
| 401 | if (str) String_AppendUtf8(value, str, str_len); |
| 402 | |
| 403 | be_clipboard->Unlock(); |
| 404 | } |
| 405 | |
| 406 | void Clipboard_SetText(const cc_string* value) { |
| 407 | char str[NATIVE_STR_LEN]; |
nothing calls this directly
no test coverage detected