int firstCodePoint(String s) { final iterator = s.runes.iterator; return iterator.moveNext() ? iterator.current : 0; }