NYSIIS: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
(Changes to eliminate warnings when compiling with Nim 2.0.) |
||
Line 1,164: | Line 1,164: | ||
result.add word[0] |
result.add word[0] |
||
word.delete(0 |
word.delete(0..0) |
||
for mStr in MStrs: |
for mStr in MStrs: |
||
word = word.replace(mStr[0], mStr[1]) |
word = word.replace(mStr[0], mStr[1]) |
||
Line 1,184: | Line 1,184: | ||
dec len |
dec len |
||
if len > 1 and s[len-2..len-1] == "AY": |
if len > 1 and s[len-2..len-1] == "AY": |
||
s.delete(len-2 |
s.delete(len-2..len-2) |
||
dec len |
dec len |
||
if len > 0 and s[len-1] == 'A': |
if len > 0 and s[len-1] == 'A': |