From 32056302fc9a462d74e0694eac532f5d1ab428c9 Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Wed, 18 Sep 2024 15:14:09 +0200 Subject: [PATCH] ICU-22722 Add example code for UnicodeString and the standard library. --- docs/userguide/strings/index.md | 70 +++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/docs/userguide/strings/index.md b/docs/userguide/strings/index.md index 100ca177d522..820e26d5cf23 100644 --- a/docs/userguide/strings/index.md +++ b/docs/userguide/strings/index.md @@ -456,6 +456,76 @@ modification and is useful for operations on text that may have associated meta-data (e.g., styled text), especially in the Transliterator API. UnicodeString implements Replaceable. +UnicodeString can be used together with standard library algorithms and containers: + +```c++ +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Output all strings in this container to this stream. +template