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
La solution
Vous devez utiliser le toUpperCase
fonction dans l' String
bibliothèque, détaillé ici:
Par exemple:
rascal>import String;
ok
rascal>toUpperCase("hEllO WOrlD");
str: "HELLO WORLD"
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow