• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/APP-IPK/AiCloud-ipk/opt/etc/aicloud_UI/js/davclient.js/jsbase/

Lines Matching refs:string

1 load('string.js');
4 testing.assertEquals(string.strip(' foo '), 'foo');
5 testing.assertEquals(string.strip('\tfoo'), 'foo');
6 testing.assertEquals(string.strip('foo\r\n'), 'foo');
7 testing.assertEquals(string.strip('\t\r\n \nfoo \t bar\r\n\t'), 'foo \t bar');
11 testing.assertEquals(string.reduceWhitespace('foo bar'), 'foo bar');
12 testing.assertEquals(string.reduceWhitespace('foo\r\nbar'), 'foo bar');
13 testing.assertEquals(string.reduceWhitespace('foo\t\r\n \tbar'), 'foo bar');
17 testing.assertEquals(string.entitize('foo>bar'), 'foo>bar');
18 testing.assertEquals(string.entitize('foo<&>bar'), 'foo&lt;&amp;&gt;bar');
19 testing.assertEquals(string.entitize('foo"\'bar'), 'foo&quot;\'bar'); //'foo&quot;&apos;bar');
23 testing.assertEquals(string.deentitize('foo&amp;bar'), 'foo&bar');
24 testing.assertEquals(string.deentitize('foo&amp;gtbar'), 'foo&gtbar');
25 testing.assertEquals(string.deentitize('foo&quot;&apos;bar'), 'foo"&apos;bar'); //'foo"\'bar');
29 testing.assertEquals(string.urldecode('foo%20bar'), 'foo bar');
30 testing.assertEquals(string.urldecode('foo+bar%40baz'), 'foo bar@baz');
34 testing.assertEquals(string.urlencode('foo bar+baz'), escape('foo bar+baz'));
38 testing.assertEquals(string.escape('foo\nbar\\baz'), 'foo\\\nbar\\\\baz');
42 testing.assertEquals(string.unescape('foo\\\nbar\\\\baz'), 'foo\nbar\\baz');
46 testing.assertEquals(string.centerTruncate('foo', 10), 'foo');
47 testing.assertEquals(string.centerTruncate('foo bar baz', 10), 'fo ... az');
51 testing.assert(string.startsWith('foo', 'f'));
52 testing.assert(string.startsWith('foobarbaz', 'foo'));
53 testing.assertFalse(string.startsWith('foo', 'b'));
57 testing.assert(string.endsWith('foo', 'o'));
58 testing.assert(string.endsWith('foo bar baz', 'baz'));
59 testing.assertFalse(string.endsWith('foo', 'z'));