archive_string.h (e477abf734cc777a55286bfbd6b80a6760c96acf) | archive_string.h (a2e802b76bf44204b2ada3935e96cc46d8176c08) |
---|---|
1/*- 2 * Copyright (c) 2003-2010 Tim Kientzle 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 101 unchanged lines hidden (view full) --- 110void 111archive_string_conversion_set_opt(struct archive_string_conv *, int); 112#define SCONV_SET_OPT_UTF8_LIBARCHIVE2X 1 113#define SCONV_SET_OPT_NORMALIZATION_C 2 114#define SCONV_SET_OPT_NORMALIZATION_D 4 115 116 117/* Copy one archive_string to another in locale conversion. | 1/*- 2 * Copyright (c) 2003-2010 Tim Kientzle 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 101 unchanged lines hidden (view full) --- 110void 111archive_string_conversion_set_opt(struct archive_string_conv *, int); 112#define SCONV_SET_OPT_UTF8_LIBARCHIVE2X 1 113#define SCONV_SET_OPT_NORMALIZATION_C 2 114#define SCONV_SET_OPT_NORMALIZATION_D 4 115 116 117/* Copy one archive_string to another in locale conversion. |
118 * Return -1 if conversion failes. */ | 118 * Return -1 if conversion fails. */ |
119int 120archive_strncpy_l(struct archive_string *, const void *, size_t, 121 struct archive_string_conv *); 122 123/* Copy one archive_string to another in locale conversion. | 119int 120archive_strncpy_l(struct archive_string *, const void *, size_t, 121 struct archive_string_conv *); 122 123/* Copy one archive_string to another in locale conversion. |
124 * Return -1 if conversion failes. */ | 124 * Return -1 if conversion fails. */ |
125int 126archive_strncat_l(struct archive_string *, const void *, size_t, 127 struct archive_string_conv *); 128 129 130/* Copy one archive_string to another */ 131#define archive_string_copy(dest, src) \ 132 ((dest)->length = 0, archive_string_concat((dest), (src))) --- 107 unchanged lines hidden --- | 125int 126archive_strncat_l(struct archive_string *, const void *, size_t, 127 struct archive_string_conv *); 128 129 130/* Copy one archive_string to another */ 131#define archive_string_copy(dest, src) \ 132 ((dest)->length = 0, archive_string_concat((dest), (src))) --- 107 unchanged lines hidden --- |