Using non-breaking spaces as a hint to break too long words

Change-Id: Ic88e961ea3fb08e61340895115f514c6f5dec163
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379798
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
diff --git a/modules/skshaper/src/SkUnicode_icu.cpp b/modules/skshaper/src/SkUnicode_icu.cpp
index 99bb55b..ce420d8 100644
--- a/modules/skshaper/src/SkUnicode_icu.cpp
+++ b/modules/skshaper/src/SkUnicode_icu.cpp
@@ -459,6 +459,10 @@
         return u_isWhitespace(utf8);
     }
 
+    bool isSpace(SkUnichar utf8) override {
+        return u_isspace(utf8);
+    }
+
     static bool isHardLineBreak(SkUnichar utf8) {
         auto property = u_getIntPropertyValue(utf8, UCHAR_LINE_BREAK);
         return property == U_LB_LINE_FEED || property == U_LB_MANDATORY_BREAK;