Files
pplus-library/mojo/probes/string-length.mojo
T
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

7 lines
200 B
Mojo

# probe: len(String) counts bytes; what do byte_length and count_codepoints give?
def main():
var s = String("héllo")
print(len(s))
print(s.byte_length())
print(s.count_codepoints())