Skip to content
  • Chris Luke's avatar
    d4144c22
    Better re-capitalization · d4144c22
    Chris Luke authored
    Some of the patterns require replacement of a token with multiple letters.
    This requires we do something to match the alphabetic case of the source text;
    That is "Aa" becomes "Oo" or "AA" into "OO". The previous heuristic was not
    terribly effective so now we iterate the characters of the entire token and
    actively check the case, setting the output character appropriately. This is
    not terribly efficient but it works.
    d4144c22
    Better re-capitalization
    Chris Luke authored
    Some of the patterns require replacement of a token with multiple letters.
    This requires we do something to match the alphabetic case of the source text;
    That is "Aa" becomes "Oo" or "AA" into "OO". The previous heuristic was not
    terribly effective so now we iterate the characters of the entire token and
    actively check the case, setting the output character appropriately. This is
    not terribly efficient but it works.
Loading