您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
14 行
450 B
14 行
450 B
namespace Unity.UIWidgets.ui {
|
|
public static class LayoutUtils {
|
|
public const char CHAR_NBSP = '\u00A0';
|
|
|
|
public static bool isWordSpace(char ch) {
|
|
return ch == ' ' || ch == CHAR_NBSP;
|
|
}
|
|
|
|
public static bool isLineEndSpace(char c) {
|
|
return c == '\n' || c == ' ' || c == 0x1680 || (0x2000 <= c && c <= 0x200A && c != 0x2007) ||
|
|
c == 0x205F || c == 0x3000;
|
|
}
|
|
}
|
|
}
|