3

Is there a simple way of checking whether a given character is in a string?
I know that if the string was simply a range (say 'a'..'z') then I could have used the in operator, but I need something to the lines of char in "- _,.". What's the best way of doing so in Ada?

1 Answer 1

4

Use "Is_In" from the Ada.Strings.Maps package.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.