Question

Comment puis-je mettre une chaîne en rascal?

Dans la documentation de la chaîne de la bibliothèque, je ne peux pas trouver une méthode pour mettre une chaîne de caractères.

http://tutor.rascal-mpl.org/Rascal/Rascal.html#/Rascal/Expressions/Values/String/String.html

Était-ce utile?

La solution

Vous devez utiliser le toUpperCase fonction dans l' String bibliothèque, détaillé ici:

http://tutor.rascal-mpl.org/Rascal/Rascal.html#/Rascal/Libraries/Prelude/String/toUpperCase/toUpperCase.html

Par exemple:

rascal>import String;
ok

rascal>toUpperCase("hEllO WOrlD");
str: "HELLO WORLD"
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top