Lines Matching +full:per +full:- +full:string
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) International Business Machines Corp., 2000-2004
16 * FUNCTION: Convert little-endian unicode string to character string
25 int warn = !!warn_again; /* once per string */ in jfs_strfromUCS_le()
31 codepage->uni2char(le16_to_cpu(from[i]), in jfs_strfromUCS_le()
44 warn--; in jfs_strfromUCS_le()
45 warn_again--; in jfs_strfromUCS_le()
47 "non-latin1 character 0x%x found in JFS file name\n", in jfs_strfromUCS_le()
66 * FUNCTION: Convert character string to unicode string
76 for (i = 0; len && *from; i++, from += charlen, len -= charlen) in jfs_strtoUCS()
78 charlen = codepage->char2uni(from, len, &to[i]); in jfs_strtoUCS()
83 codepage->charset, *from); in jfs_strtoUCS()
99 * FUNCTION: Allocate and translate to unicode string
104 struct nls_table *nls_tab = JFS_SBI(dentry->d_sb)->nls_tab; in get_UCSname()
105 int length = dentry->d_name.len; in get_UCSname()
108 return -ENAMETOOLONG; in get_UCSname()
110 uniName->name = in get_UCSname()
113 if (uniName->name == NULL) in get_UCSname()
114 return -ENOMEM; in get_UCSname()
116 uniName->namlen = jfs_strtoUCS(uniName->name, dentry->d_name.name, in get_UCSname()
119 if (uniName->namlen < 0) { in get_UCSname()
120 kfree(uniName->name); in get_UCSname()
121 return uniName->namlen; in get_UCSname()