vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 2 | * Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved. |
| 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
| 5 | #ifndef _UTF8String_H_ |
| 6 | #define _UTF8String_H_ |
| 7 | |
| 8 | #include <constr_TYPE.h> |
| 9 | #include <OCTET_STRING.h> |
| 10 | |
| 11 | typedef OCTET_STRING_t UTF8String_t; /* Implemented in terms of OCTET STRING */ |
| 12 | |
| 13 | extern asn1_TYPE_descriptor_t asn1_DEF_UTF8String; |
| 14 | |
| 15 | asn_constr_check_f UTF8String_constraint; |
| 16 | asn_struct_print_f UTF8String_print; |
| 17 | |
| 18 | /* Returns length of UTF-8 string in characters or -1 if error. */ |
| 19 | ssize_t UTF8String_length(const UTF8String_t *st, const char *opt_type_name, |
| 20 | asn_app_consume_bytes_f *app_errlog, void *app_key); |
| 21 | |
| 22 | #endif /* _UTF8String_H_ */ |