mirror of
https://github.com/ganelson/inform.git
synced 2024-07-07 17:44:22 +03:00
LanguageContraction() now operates on a byte/word array.
This commit is contained in:
parent
e0f59380ed
commit
ecc69bbd14
|
@ -169,9 +169,15 @@ Constant LanguageContractionForms = 2; ! English has two:
|
||||||
! 0 = starting with a consonant
|
! 0 = starting with a consonant
|
||||||
! 1 = starting with a vowel
|
! 1 = starting with a vowel
|
||||||
|
|
||||||
[ LanguageContraction text;
|
[ LanguageContraction text
|
||||||
if (text->0 == 'a' or 'e' or 'i' or 'o' or 'u'
|
ch;
|
||||||
or 'A' or 'E' or 'I' or 'O' or 'U') return 1;
|
#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;
|
return 0;
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue