Lines Matching refs:ins_len
471 static int utf16_to_utf8_size(const ntfschar *ins, const int ins_len, int outs_len) in utf16_to_utf8_size() argument
478 for (i = 0; i < ins_len && ins[i] && count <= outs_len; i++) { in utf16_to_utf8_size()
551 static int ntfs_utf16_to_utf8(const ntfschar *ins, const int ins_len, in ntfs_utf16_to_utf8() argument
575 size = utf16_to_utf8_size(ins, ins_len, outs_len - 1); in ntfs_utf16_to_utf8()
589 for (i = 0; i < ins_len && ins[i]; i++) { in ntfs_utf16_to_utf8()
906 int ntfs_ucstombs(const ntfschar *ins, const int ins_len, char **outs, in ntfs_ucstombs() argument
931 return ntfs_utf16_to_utf8(ins, ins_len, outs, outs_len); in ntfs_ucstombs()
934 mbs_len = (ins_len + 1) * MB_CUR_MAX; in ntfs_ucstombs()
944 for (i = o = 0; i < ins_len; i++) { in ntfs_ucstombs()
1033 int i, o, cnt, ins_len, ucs_len, ins_size; local
1054 ins_len = mbsrtowcs(NULL, (const char **)&s, 0, &mbstate);
1056 if (!ins_len && *ins) {
1058 ins_len = strlen(ins);
1062 ins_len = mbstowcs(NULL, s, 0);
1065 ins_len = strlen(ins);
1067 if (ins_len == -1)
1068 return ins_len;
1078 ins_len++;
1079 ucs_len = ins_len;