89 |
missing values. (Long string variables never accept missing |
missing values. (Long string variables never accept missing |
90 |
values.) */ |
values.) */ |
91 |
bool |
bool |
92 |
mv_add_str (struct missing_values *mv, const unsigned char s[]) |
mv_add_str (struct missing_values *mv, const char s[]) |
93 |
{ |
{ |
94 |
assert (mv->width > 0); |
assert (mv->width > 0); |
95 |
return mv_add_value (mv, (union value *) s); |
return mv_add_value (mv, (union value *) s); |
223 |
NEW_WIDTH (inclusive) and OLD_WIDTH (exclusive), |
NEW_WIDTH (inclusive) and OLD_WIDTH (exclusive), |
224 |
false otherwise. */ |
false otherwise. */ |
225 |
static bool |
static bool |
226 |
can_resize_string (const unsigned char *s, int old_width, int new_width) |
can_resize_string (const char *s, int old_width, int new_width) |
227 |
{ |
{ |
228 |
int i; |
int i; |
229 |
|
|
302 |
MV must be a set of string missing values. |
MV must be a set of string missing values. |
303 |
S[] must contain exactly as many characters as MV's width. */ |
S[] must contain exactly as many characters as MV's width. */ |
304 |
bool |
bool |
305 |
mv_is_str_missing (const struct missing_values *mv, |
mv_is_str_missing (const struct missing_values *mv, const char s[]) |
|
const unsigned char s[]) |
|
306 |
{ |
{ |
307 |
return mv_is_str_user_missing (mv, s); |
return mv_is_str_user_missing (mv, s); |
308 |
} |
} |
347 |
S[] must contain exactly as many characters as MV's width. */ |
S[] must contain exactly as many characters as MV's width. */ |
348 |
bool |
bool |
349 |
mv_is_str_user_missing (const struct missing_values *mv, |
mv_is_str_user_missing (const struct missing_values *mv, |
350 |
const unsigned char s[]) |
const char s[]) |
351 |
{ |
{ |
352 |
const union value *v = mv->values; |
const union value *v = mv->values; |
353 |
assert (mv->width > 0); |
assert (mv->width > 0); |