2004-06-03 03:38:44 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 2003, 2004 Lev Walkin <vlm@lionet.info>. All rights reserved.
|
|
|
|
* Redistribution and modifications are permitted subject to BSD license.
|
|
|
|
*/
|
|
|
|
#ifndef _UTF8String_H_
|
|
|
|
#define _UTF8String_H_
|
|
|
|
|
|
|
|
#include <OCTET_STRING.h>
|
|
|
|
|
2004-09-24 21:00:50 +00:00
|
|
|
typedef OCTET_STRING_t UTF8String_t; /* Implemented via OCTET STRING */
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2004-09-29 13:26:15 +00:00
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_UTF8String;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
|
|
|
asn_struct_print_f UTF8String_print;
|
2004-09-22 16:06:28 +00:00
|
|
|
asn_constr_check_f UTF8String_constraint;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
|
|
|
/* Returns length of UTF-8 string in characters or -1 if error. */
|
|
|
|
ssize_t UTF8String_length(const UTF8String_t *st, const char *opt_type_name,
|
|
|
|
asn_app_consume_bytes_f *app_errlog, void *app_key);
|
|
|
|
|
|
|
|
#endif /* _UTF8String_H_ */
|