1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-02 23:14:57 +03:00

LanguageContraction() now operates on a byte/word array.

This commit is contained in:
Andrew Plotkin 2023-05-13 18:00:17 -04:00
parent e0f59380ed
commit ecc69bbd14

View file

@ -169,9 +169,15 @@ Constant LanguageContractionForms = 2; ! English has two:
! 0 = starting with a consonant
! 1 = starting with a vowel
[ LanguageContraction text;
if (text->0 == 'a' or 'e' or 'i' or 'o' or 'u'
or 'A' or 'E' or 'I' or 'O' or 'U') return 1;
[ LanguageContraction text
ch;
#Ifdef TARGET_ZCODE;
ch = text->0;
#Ifnot; ! TARGET_GLULX
ch = text-->0;
#Endif; ! TARGET_
if (ch == 'a' or 'e' or 'i' or 'o' or 'u'
or 'A' or 'E' or 'I' or 'O' or 'U') return 1;
return 0;
];