1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14string replace regexp flag is g: 44
15string replace regexp flag is gi :15
16string replace regexp pattern is /([^d]*)(d*)([^w]*)/ : 161
17string split number of input parameters is 2 : 70
18string split number of input parameters is 1 : 35
19string split into regexp.split : 22
20string indexOf input parameter is a substring : 14
21string indexOf Input parameter is not a substring : 15
22string indexOf number of input parameters is 2 : 11
23string slice number of input parameters is 1 : 17
24string slice number of input parameters is 2 : 18
25string slice input parameter is negative : 18
26string substring the first parameter is less than the second parameter : 18
27string substring the first parameter is greater than the second parameter : 18
28string substring The first parameter is equal to the second parameter : 11
29string substr the two parameters are adjacent numbers : 17
30string substr negative number in parameter : 18
31string substr number of input parameters is 2 : 17
32string replace into string.replace searchtag in the middle of the input parameter : 59
33string replace into string.replace searchtag in the beginning of the input parameter : 46
34string replace into string.repalce : 55
35string repeat the parameter is integer : 18
36string repeat the parameter is double : 19
37string repeat the return value is himself : 15
38string startsWith return true : 12
39string startsWith return true : 12
40string startsWith return false : 12
41string charCodeAt small input parameter value : 9
42string charCodeAt bigger input parameter value : 10
43string charCodeAt index out of range : 9
44string charAt small input parameter value : 10
45string charAt bigger input parameter value : 9
46string charAt index out of range : 10
47string toLowerCase Hello World. How are you doing? : 18
48string toLowerCase The quick brown fox jumps over the lazy dog : 18
49string toLowerCase Hello World : 18
50string toUpperCase Hello World. How are you doing? : 16
51string toUpperCase Hello World : 16
52string toUpperCase The quick brown fox jumps over the lazy dog. : 18
53string localeCompare letter a is before c yielding a negative value : 503
54string localeCompare Alphabetically the word check after against yielding a positive value : 13
55string localeCompare a and a are equivalent yielding a neutral value of zero : 7
56  This is a test string to test the interface    string rim : 5
57   Hello world!     string trim : 6
58   This is a test string    string trim : 5
59