Lines Matching refs:length
78 unsigned length; in vim_strsave_escaped_ext() local
83 length = 1; // count the trailing NUL in vim_strsave_escaped_ext()
88 length += l; // count a multibyte char in vim_strsave_escaped_ext()
93 ++length; // count a backslash in vim_strsave_escaped_ext()
94 ++length; // count an ordinary char in vim_strsave_escaped_ext()
96 escaped_string = alloc(length); in vim_strsave_escaped_ext()
151 unsigned length; in vim_strsave_shellescape() local
184 length = (unsigned)STRLEN(string) + 3; // two quotes and a trailing NUL in vim_strsave_shellescape()
191 ++length; // " -> "" in vim_strsave_shellescape()
198 length +=2; // ' => '' in vim_strsave_shellescape()
200 length += 3; // ' => '\'' in vim_strsave_shellescape()
205 ++length; // insert backslash in vim_strsave_shellescape()
207 ++length; // insert backslash in vim_strsave_shellescape()
211 ++length; // insert backslash in vim_strsave_shellescape()
215 ++length; // insert backslash in vim_strsave_shellescape()
219 escaped_string = alloc(length); in vim_strsave_shellescape()