static L codepoints(S s) { int n = l(s); new L out; for (int offset = 0; offset < n; ) { int codepoint = s.codePointAt(offset); out.add(codepoint); offset += Character.charCount(codepoint); } ret out; }