Run-length encoding: Difference between revisions

m
m (→‎encoding: changed comments and indentation, added a comment. -- ~~~~)
Line 796:
Encoded: 12W1B12W3B24W1B14W</pre>
===UTF String Version===
D's native string is utf-encoded. This version workworks for utf string., Thisand code useuses a [[Variable-length_quantity|Variable-length Quantity]] [[Variable-length_quantity#D|module]].
 
<lang d>import std.stdio, std.conv, std.utf, std.array;
Anonymous user