Lines Matching refs:metadata

297     VimClipType_t	metadata = { -1, -1, -1, -1 };  in clip_mch_request_selection()  local
329 memcpy(&metadata, meta_p, n); in clip_mch_request_selection()
337 && metadata.rawlen > (int)STRLEN(p_enc)) in clip_mch_request_selection()
349 str_size = (int)(metadata.rawlen - n); in clip_mch_request_selection()
361 if (IsClipboardFormatAvailable(CF_UNICODETEXT) && metadata.ucslen != 0) in clip_mch_request_selection()
372 if (metadata.ucslen >= 0) in clip_mch_request_selection()
374 if (metadata.ucslen > maxlen) in clip_mch_request_selection()
377 str_size = metadata.ucslen; in clip_mch_request_selection()
399 if (metadata.txtlen >= 0) in clip_mch_request_selection()
401 if (metadata.txtlen > maxlen) in clip_mch_request_selection()
404 str_size = metadata.txtlen; in clip_mch_request_selection()
425 if (str != NULL && metadata.txtlen != 0) in clip_mch_request_selection()
430 if (metadata.type == -1) in clip_mch_request_selection()
431 metadata.type = MAUTO; in clip_mch_request_selection()
437 clip_yank_selection(metadata.type, temp_clipboard, str_size, cbd); in clip_mch_request_selection()
458 VimClipType_t metadata; in clip_mch_set_selection() local
471 metadata.type = clip_convert_selection(&str, &txtlen, cbd); in clip_mch_set_selection()
472 if (metadata.type < 0) in clip_mch_set_selection()
474 metadata.txtlen = (int)txtlen; in clip_mch_set_selection()
475 metadata.ucslen = 0; in clip_mch_set_selection()
476 metadata.rawlen = 0; in clip_mch_set_selection()
484 metadata.rawlen = (int)(txtlen + STRLEN(p_enc) + 1); in clip_mch_set_selection()
486 metadata.rawlen + 1); in clip_mch_set_selection()
495 metadata.rawlen = 0; in clip_mch_set_selection()
500 int len = metadata.txtlen; in clip_mch_set_selection()
511 metadata.txtlen = WideCharToMultiByte(GetACP(), 0, out, len, in clip_mch_set_selection()
514 str = alloc(metadata.txtlen == 0 ? 1 : metadata.txtlen); in clip_mch_set_selection()
521 (LPSTR)str, metadata.txtlen, 0, 0); in clip_mch_set_selection()
535 metadata.ucslen = len; in clip_mch_set_selection()
540 hMem = GlobalAlloc(GMEM_MOVEABLE | GMEM_DDESHARE, metadata.txtlen + 1); in clip_mch_set_selection()
546 mch_memmove((char_u *)lpszMem, str, metadata.txtlen); in clip_mch_set_selection()
558 memcpy(lpszMemVim, &metadata, sizeof(metadata)); in clip_mch_set_selection()