Bug 23588 – Std lacks a way to read Unicode from a file expect by line

Status
NEW
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2022-12-28T17:35:58Z
Last change time
2024-12-01T16:40:53Z
Assigned to
No Owner
Creator
crazymonkyyy
Moved to GitHub: phobos#9852 →

Comments

Comment #0 by crazymonkyyy — 2022-12-28T17:35:58Z
``` struct filebydchar{ dstring me; alias me this; this(string s){ import std.file; import std.conv; me=readText(s).to!dstring; } int i; dchar front(){ return me[i]; } void popFront(){ i++; } bool empty(){ return i>=me.length; } } ``` I would expect a `std.File.byDChar` rather then what may be poor attempts at implementing unicode logic on some c interface
Comment #1 by robert.schadek — 2024-12-01T16:40:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9852 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB