this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

gwidth: use std.mem.splitSequence

std.mem.split is deprecated post zig v0.13.0. Use std.mem.splitSequence
instead

authored by

Tobias Simetsreiter and committed by
Tim Culverhouse
dc0a228a d33a9f98

+1 -1
+1 -1
src/gwidth.zig
··· 33 33 return total; 34 34 }, 35 35 .no_zwj => { 36 - var iter = std.mem.split(u8, str, "\u{200D}"); 36 + var iter = std.mem.splitSequence(u8, str, "\u{200D}"); 37 37 var result: u16 = 0; 38 38 while (iter.next()) |s| { 39 39 result += gwidth(s, .unicode, data);