blob: 543d3196999c60b7ea6d17abfe6357984a827c94 [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001/*-
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
11typedef OCTET_STRING_t UTF8String_t; /* Implemented in terms of OCTET STRING */
12
13extern asn1_TYPE_descriptor_t asn1_DEF_UTF8String;
14
Lev Walkinf15320b2004-06-03 03:38:44 +000015asn_struct_print_f UTF8String_print;
Lev Walkina9cc46e2004-09-22 16:06:28 +000016asn_constr_check_f UTF8String_constraint;
Lev Walkinf15320b2004-06-03 03:38:44 +000017
18/* Returns length of UTF-8 string in characters or -1 if error. */
19ssize_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_ */