Giter VIP home page Giter VIP logo

Comments (10)

maxime-esa avatar maxime-esa commented on July 30, 2024

What do you mean exactly by "all the char"?

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

Perhaps you mean the characters from international alphabet 5 - see the complete set of characters here: https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/nls/rbagscharset01169.htm

In that case I suggest you use the IA5String built-in ASN.1 type, instead of PrintableString (which is not supported in Opengeode)

from opengeode.

zongz1024 avatar zongz1024 commented on July 30, 2024

Perhaps you mean the characters from international alphabet 5 - see the complete set of characters here: https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/nls/rbagscharset01169.htm

In that case I suggest you use the IA5String built-in ASN.1 type, instead of PrintableString (which is not supported in Opengeode)

If I want to represent the complete set of characters,do I need to list all character ranges? like this:

char ::= PrintableString (FROM ("a".."z")|FROM ("A".."Z")|FROM("0".."9")|FROM("+".."?"))

to represent them
image

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

As I said, you just need to use the IA5String type instead of PrintableString. It contains this character set already.

from opengeode.

zongz1024 avatar zongz1024 commented on July 30, 2024

As I said, you just need to use the IA5String type instead of PrintableString. It contains this character set already.

like this???

char ::=IA5String;

a char::="a";

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

No, like this:

  1. First you subtype IA5String to give it size limits:
    MyString ::= IA5String (SIZE (0..100))
  1. Then if needed you can define constants of this type:
    a MyString ::= "Hello, world"
  1. If you want to use it in the SDL model:
    dcl a MyString := 'Hello, world';

from opengeode.

zongz1024 avatar zongz1024 commented on July 30, 2024

No, like this:

  1. First you subtype IA5String to give it size limits:
    MyString ::= IA5String (SIZE (0..100))
  1. Then if needed you can define constants of this type:
    a MyString ::= "Hello, world"
  1. If you want to use it in the SDL model:
    dcl a MyString := "Hello, world";

I do not want to represent a String.I just want to represent character type. Like this. Is it right?

Char ::= IA5String (SIZE (0..1))

 dcl a MyChar := "H";

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

If it is one char you can use (SIZE (1))
And then dcl a MyChar := 'h'; (use single quotes for strings in SDL, not double quote - sorry I made the mistake in my previous answer)

from opengeode.

zongz1024 avatar zongz1024 commented on July 30, 2024

If it is one char you can use (SIZE (1))
And then dcl a MyChar := 'h'; (use single quotes for strings in SDL, not double quote - sorry I made the mistake in my previous answer)

OK,Thanks for your help again.

from opengeode.

maxime-esa avatar maxime-esa commented on July 30, 2024

You're welcome.

from opengeode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.