You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tubemq.apache.org by al...@apache.org on 2020/05/29 17:04:01 UTC
[incubator-tubemq] branch master updated: [TUBEMQ-104] Substitute
Chinese comments with English - core module (#104)
This is an automated email from the ASF dual-hosted git repository.
aloyszhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tubemq.git
The following commit(s) were added to refs/heads/master by this push:
new d373cad [TUBEMQ-104] Substitute Chinese comments with English - core module (#104)
d373cad is described below
commit d373cad3492583506665bda057a46710b4367ac2
Author: viviel <37...@users.noreply.github.com>
AuthorDate: Sat May 30 01:03:55 2020 +0800
[TUBEMQ-104] Substitute Chinese comments with English - core module (#104)
---
.../main/java/org/apache/tubemq/corebase/utils/TStringUtils.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tubemq-core/src/main/java/org/apache/tubemq/corebase/utils/TStringUtils.java b/tubemq-core/src/main/java/org/apache/tubemq/corebase/utils/TStringUtils.java
index 3a16a6d..985dd5d 100644
--- a/tubemq-core/src/main/java/org/apache/tubemq/corebase/utils/TStringUtils.java
+++ b/tubemq-core/src/main/java/org/apache/tubemq/corebase/utils/TStringUtils.java
@@ -581,7 +581,7 @@ public class TStringUtils {
}
/**
- * 解析出下列语法所构成的<code>SENTENCE</code>。
+ * Parse the <code>SENTENCE</code> formed by the following grammar.
* <p/>
* <pre>
* SENTENCE = WORD (DELIMITER* WORD)*
@@ -837,12 +837,12 @@ public class TStringUtils {
for (int index = 0; index < length; index++) {
char ch = str.charAt(index);
- // 忽略空白。
+ // Ignore white space.
if (Character.isWhitespace(ch)) {
continue;
}
- // 大写字母开始:UpperCaseWord或是TitleCaseWord。
+ // Start with capital letters: UpperCaseWord or TitleCaseWord.
if (Character.isUpperCase(ch)) {
int wordIndex = index + 1;