blob: f18bf7030f50a9250ac3aa6e0c37dfd6ad74a9b0 [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
15asn_constr_check_f UTF8String_constraint;
16asn_struct_print_f UTF8String_print;
17
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_ */