ae1ec46f9f3d3c8f898f238497444cdbf66fbb59
[com/asn1c.git] / tests / tests-asn1c-compiler / 119-per-strings-OK.asn1
1
2 -- OK: Everything is fine
3
4 -- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
5 -- .spelio.software.asn1c.test (9363.1.5.1)
6 -- .119
7
8 ModulePERStrings
9         { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10                 spelio(9363) software(1) asn1c(5) test(1) 119 }
11         DEFINITIONS AUTOMATIC TAGS ::=
12 BEGIN
13
14         PDU ::= SEQUENCE {
15                 many    SEQUENCE OF PDU                 OPTIONAL,
16                 ia5     IA5String                       OPTIONAL,
17                 ia5-c   IA5String (FROM("A".."Z"))      OPTIONAL,
18                 ia5-ce  IA5String (FROM("A".."Z",...))  OPTIONAL,
19                 ia5-ir  IA5String (FROM("A".."B"|"X".."Z")) OPTIONAL,
20                 vs      VisibleString                   OPTIONAL,
21                 vs-c    VisibleString (FROM("A".."Z"))  OPTIONAL,
22                 vs-ce   VisibleString (FROM("A".."Z",...)) OPTIONAL,
23                 vs-ir   VisibleString (FROM("A".."B"|"X".."Z")) OPTIONAL,
24                 pr      PrintableString                 OPTIONAL,
25                 pr-c    PrintableString (FROM("A".."Z")) OPTIONAL,
26                 pr-ir   PrintableString (FROM("A".."B"|"X".."Z")) OPTIONAL,
27                 ns      NumericString                   OPTIONAL,
28                 ns-c    NumericString (FROM("5".."9"))  OPTIONAL,
29                 ns-ce   NumericString (FROM("5".."9",...)) OPTIONAL,
30                 ns-ir   NumericString (FROM("1"|"9")) OPTIONAL,
31                 ut-c    UTF8String (SIZE(6))            OPTIONAL,
32                 ut-ce   UTF8String (SIZE(6,...))        OPTIONAL,
33                 ut-ir   UTF8String (FROM("A"|"Z"))      OPTIONAL,
34                 bm      BMPString                       OPTIONAL,
35                 bm-c    BMPString (FROM("A".."Z"))      OPTIONAL,
36                 bm-cs   BMPString (SIZE(6))     OPTIONAL,
37                 bm-ce   BMPString (FROM("A".."Z",...))  OPTIONAL,
38                 bm-ir   BMPString (FROM("A".."B"|"X".."Z"))     OPTIONAL,
39                 us      UniversalString                 OPTIONAL,
40                 us-c    UniversalString (FROM("A".."Z"))        OPTIONAL,
41                 us-cs   UniversalString (SIZE(6))       OPTIONAL,
42                 us-ce   UniversalString (FROM("A".."Z",...))    OPTIONAL,
43                 us-ir   UniversalString (FROM("A".."B"|"X".."Z")) OPTIONAL,
44                 real    REAL                            OPTIONAL,
45                 oid     OBJECT IDENTIFIER               OPTIONAL
46         }
47
48 END