Re: RFC/vote: A fl_utf8 function for detecting continuation bytes
Greg Ercolano
21:27 Jul 21
So naming things really is the hardest
thing.. I always thought so, lol.
It's looking like everyone agrees on fl_utf8_is_continuation();
adding the results up:
fl_utf8_is_continuation()
manolo: My vote is for (1) although I would have preferred fl_utf8_is_continuation_byte()
bill: I would use either is_continuation() or
!is_leading()
albrecht: I vote for fl_utf8_is_continuation() w/o the
redundant "_byte" suffix.
greg: Suggesting 'is_aligned' or 'is_align' or
'is_continuation'
fl_utf8_is_cont()
albrecht: I'd also agree with
fl_utf8_is_cont() for brevity
greg: +1 for (2) [fl_utf8_is_cont()]
fl_utf8_is_tail()
bill: "tail" seems good to me
albrecht: +1 "tail" is a full but definitely short word,
better than "cont" which is an arbitrary abbreviation.
There's some other suggs but not more than
one or two votes.
Matt doesn't show up because he seemed to not care what it's named
as long as it's "using the right terminology".
I think the "_byte" suffix has been voted out: manolo prefers it,
albrecht and greg
think it's redundant, all bill's suggestions leave it out.
I'll leave the voting open a bit longer, just in case there's a
change, e.g. if "_tail" gets traction.
I'm -1 for _tail() because it's unclear to me: Even though it's
actually used in the RFC spec as ABNF (augmented bakus-naur
format), I think bakus-naur is its own world, and outside of
that limited and specific context it's unclear; to the casual
reader it implies "tail" is the very end of something (last
byte), not possibly somewhere in the middle. But I could be
swayed with conversation; "tail" is very nicely short!
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fltkcoredev/77227b98-f511-4d48-b316-d74031105bc3%40seriss.com.
[ Direct Link to Message ]
Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.