summaryrefslogtreecommitdiff
path: root/core/src/xmake/string
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-25 00:33:07 +0800
committerruki <[email protected]>2020-09-25 00:33:07 +0800
commit90af4956738036172984f068502624bbc515cae7 (patch)
tree7cd7177becaf98e676ae8eaa478f042e14505d3a /core/src/xmake/string
parent700f08a7bae11c22295f884610f98b7b99eb1790 (diff)
fix trailing white-space
Diffstat (limited to 'core/src/xmake/string')
-rw-r--r--core/src/xmake/string/convert.c6
-rw-r--r--core/src/xmake/string/endswith.c4
-rw-r--r--core/src/xmake/string/prefix.h2
-rw-r--r--core/src/xmake/string/startswith.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/core/src/xmake/string/convert.c b/core/src/xmake/string/convert.c
index 2d269dfb1..da8bb79ec 100644
--- a/core/src/xmake/string/convert.c
+++ b/core/src/xmake/string/convert.c
@@ -11,7 +11,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
* Copyright (C) 2015-2020, TBOOX Open Source Group.
*
* @author ruki
@@ -89,7 +89,7 @@ static xm_charset_entry_ref_t xm_string_charset_find_by_name(tb_char_t const* na
* implementation
*/
-/* convert string
+/* convert string
*
* @param str the string
* @param ftype the from-charset type, e.g. ascii, gb2312, gbk, ios8859, ucs2, ucs4, utf8, utf16, utf32
@@ -105,7 +105,7 @@ tb_int_t xm_string_convert(lua_State* lua)
// check
tb_assert_and_check_return_val(lua, 0);
- // get the string and charset types
+ // get the string and charset types
size_t src_size = 0;
tb_char_t const* src_cstr = luaL_checklstring(lua, 1, &src_size);
tb_char_t const* ftype_cstr = luaL_checkstring(lua, 2);
diff --git a/core/src/xmake/string/endswith.c b/core/src/xmake/string/endswith.c
index f731f5af1..4fa725b9c 100644
--- a/core/src/xmake/string/endswith.c
+++ b/core/src/xmake/string/endswith.c
@@ -11,7 +11,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
* Copyright (C) 2015-2020, TBOOX Open Source Group.
*
* @author ruki
@@ -45,7 +45,7 @@ tb_int_t xm_string_endswith(lua_State* lua)
tb_char_t const* suffix = luaL_checklstring(lua, 2, &suffix_size);
tb_check_return_val(string && suffix, 0);
- // string:endswith(suffix)?
+ // string:endswith(suffix)?
lua_pushboolean(lua, string_size >= suffix_size && !tb_strcmp(string + string_size - suffix_size, suffix));
diff --git a/core/src/xmake/string/prefix.h b/core/src/xmake/string/prefix.h
index 2d0143cd5..585b12c6d 100644
--- a/core/src/xmake/string/prefix.h
+++ b/core/src/xmake/string/prefix.h
@@ -11,7 +11,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
* Copyright (C) 2015-2020, TBOOX Open Source Group.
*
* @author ruki
diff --git a/core/src/xmake/string/startswith.c b/core/src/xmake/string/startswith.c
index 790d56dee..586203404 100644
--- a/core/src/xmake/string/startswith.c
+++ b/core/src/xmake/string/startswith.c
@@ -11,7 +11,7 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- *
+ *
* Copyright (C) 2015-2020, TBOOX Open Source Group.
*
* @author ruki
@@ -44,7 +44,7 @@ tb_int_t xm_string_startswith(lua_State* lua)
tb_char_t const* prefix = luaL_checklstring(lua, 2, &prefix_size);
tb_check_return_val(string && prefix, 0);
- // string:startswith(prefix)?
+ // string:startswith(prefix)?
lua_pushboolean(lua, !tb_strncmp(string, prefix, (tb_size_t)prefix_size));
// ok