asn1c/tests/16-constraint-OK.asn1.-EFpr...

57 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ModuleTestConstraint1 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 16 1 }
DEFINITIONS ::=
BEGIN
Type0 ::= IA5String (((SIZE(1..10))(FROM("a".."z" | "#"))))
-- Combined constraints: (((SIZE(1..10))(FROM("a".."z" | "#"))))
-- Practical constraints (Type0): (MIN..MAX) (SIZE(1..10)) (FROM("#" | "a".."z"))
-- PER-visible constraints (Type0): (MIN..MAX) (SIZE(1..10)) (FROM("#" | "a".."z"))
Type6 ::= IA5String ((SIZE(1..10))(FROM("a".."z" | "#")))
-- Combined constraints: ((SIZE(1..10))(FROM("a".."z" | "#")))
-- Practical constraints (Type6): (MIN..MAX) (SIZE(1..10)) (FROM("#" | "a".."z"))
-- PER-visible constraints (Type6): (MIN..MAX) (SIZE(1..10)) (FROM("#" | "a".."z"))
END
ModuleTestConstraint2 { iso org(3) dod(6) internet(1) private(4) enterprise(1)
spelio(9363) software(1) asn1c(5) test(1) 16 2 }
DEFINITIONS ::=
BEGIN
Type1 ::= IA5String (SIZE(1..10,...))(FROM("a".."z" | "#",...))
-- Combined constraints: (SIZE(1..10,...))(FROM("a".."z" | "#",...))
-- Practical constraints (Type1): (MIN..MAX) (SIZE(1..10,...)) (FROM("#" | "a".."z",...))
-- PER-visible constraints (Type1): (MIN..MAX) (SIZE(1..10,...)) (FROM(""..""))
Type2 ::= IA5String (SIZE(MIN..4) | FROM("abc"))
-- Combined constraints: (SIZE(MIN..4) | FROM("abc"))
-- Practical constraints (Type2): (MIN..MAX) (SIZE(0..MAX)) (FROM(""..""))
-- PER-visible constraints (Type2): (MIN..MAX) (SIZE(0..MAX)) (FROM(""..""))
Type3 ::= BMPString (SIZE(1))
-- Combined constraints: (SIZE(1))
-- Practical constraints (Type3): (MIN..MAX) (SIZE(1)) (FROM("".."ý"))
-- PER-visible constraints (Type3): (MIN..MAX) (SIZE(1)) (FROM("".."ý"))
Type4 ::= INTEGER (1..MAX)
-- Combined constraints: (1..MAX)
-- Practical constraints (Type4): (1..MAX)
-- PER-visible constraints (Type4): (1..MAX)
Type5 ::= BOOLEAN (TRUE | FALSE)
-- Combined constraints: (TRUE | FALSE)
-- Practical constraints (Type5): (0..1)
-- PER-visible constraints (Type5): (0..1)
ten INTEGER ::= 10
-- Practical constraints (ten): (MIN..MAX)
-- PER-visible constraints (ten): (MIN..MAX)
v1 Type1 ::= "#value with ""double quotes"""
-- Practical constraints (Type1): (MIN..MAX) (SIZE(0..MAX)) (FROM(""..""))
-- PER-visible constraints (Type1): (MIN..MAX) (SIZE(0..MAX)) (FROM(""..""))
END