From 9093ad2f8ac74f636d0e6e99a990f96c7f0a7ce1 Mon Sep 17 00:00:00 2001 From: "J. Fronny" Date: Tue, 5 Dec 2023 13:26:39 +0100 Subject: [PATCH] classlib: implement String.chars() (#872) --- .../org/teavm/classlib/java/lang/TString.java | 6 +++ .../stream/intimpl/TStringCharsStream.java | 49 +++++++++++++++++++ .../teavm/classlib/java/lang/StringTest.java | 6 +++ 3 files changed, 61 insertions(+) create mode 100644 classlib/src/main/java/org/teavm/classlib/java/util/stream/intimpl/TStringCharsStream.java diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java index 4fb0355eb..bcfb22394 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TString.java @@ -31,6 +31,8 @@ import org.teavm.classlib.java.util.TComparator; import org.teavm.classlib.java.util.TFormatter; import org.teavm.classlib.java.util.TLocale; import org.teavm.classlib.java.util.regex.TPattern; +import org.teavm.classlib.java.util.stream.TIntStream; +import org.teavm.classlib.java.util.stream.intimpl.TStringCharsStream; import org.teavm.dependency.PluggableDependency; import org.teavm.interop.NoSideEffects; @@ -587,6 +589,10 @@ public class TString extends TObject implements TSerializable, TComparable