utf8.h: Clean up and use START_MARK definition
authorKarl Williamson <public@khwilliamson.com>
Sat, 2 Mar 2013 19:12:11 +0000 (12:12 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:56:00 +0000 (09:56 -0600)
commitee372ee9ae7c97db80e5f61d4d6178afe483a803
treef4877a80afdb9de627511052df841b6b0bc299c3
parent3cd96634230fc4a063f58b18b2aa85cae3ffb1b2
utf8.h: Clean up and use START_MARK definition

The previous definition broke good encapsulation rules.  UTF_START_MARK
should return something that fits in a byte; it shouldn't be the caller
that does this.  So the mask is moved into the definition.  This means
it can apply only to the portion that creates something larger than a
byte.  Further, the EBCDIC version can be simplified, since 7 is the
largest possible number of bytes in an EBCDIC UTF8 character.
utf8.h
utfebcdic.h