Lines Matching refs:txtlen
204 int txtlen; // length of CF_TEXT in bytes member
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()
459 long_u txtlen; in clip_mch_set_selection() local
471 metadata.type = clip_convert_selection(&str, &txtlen, cbd); in clip_mch_set_selection()
474 metadata.txtlen = (int)txtlen; in clip_mch_set_selection()
484 metadata.rawlen = (int)(txtlen + STRLEN(p_enc) + 1); in clip_mch_set_selection()
491 memcpy(lpszMemRaw + STRLEN(p_enc) + 1, str, txtlen + 1); 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()
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()