File indexing completed on 2024-04-14 14:23:23

0001 Ts.setcall("test_basic", function(arg) {
0002     return arg + " bar";
0003 });
0004 
0005 Ts.setcall("test_unicode", function(arg) {
0006     return arg + " фу";
0007 });
0008 
0009 Ts.setcall("test_hascall", function(arg) {
0010     return Ts.hascall(arg) ? "yes" : "no";
0011 });
0012 
0013 Ts.setcall("test_acall", function(call, arg) {
0014     return Ts.acall(call, arg);
0015 });
0016 
0017 Ts.setcall("test_load", function() {
0018     Ts.load("loaded");
0019     return fooIt(blurb);
0020 });
0021 
0022 Ts.setcall("test_fallback", function() {
0023     Ts.fallback();
0024     return "ignored";
0025 });
0026 
0027 Ts.setcall("test_msgid", function() {
0028     return Ts.msgid();
0029 });
0030 
0031 Ts.setcall("test_msgtrf", function() {
0032     return Ts.msgstrf();
0033 });
0034 
0035 Ts.setcall("test_msgctxt", function() {
0036     return Ts.msgctxt();
0037 });
0038 
0039 Ts.setcall("test_msgkey", function() {
0040     return Ts.msgkey();
0041 });
0042 
0043 Ts.setcall("test_nsubs", function() {
0044     return Ts.nsubs().toString();
0045 });
0046 
0047 Ts.setcall("test_subs", function(ind) {
0048     return Ts.subs(ind);
0049 });
0050 
0051 Ts.setcall("test_vals", function(ind, mul) {
0052     return (Ts.subs(ind) * mul).toString();
0053 });
0054 
0055 Ts.setcall("test_dynctxt", function(key) {
0056     return Ts.dynctxt(key);
0057 });
0058 
0059 Ts.setcall("test_dbgputs", function() {
0060     Ts.dbgputs("Some debugging info...");
0061     return "debugged";
0062 });
0063 
0064 Ts.setcall("test_warnputs", function() {
0065     Ts.warnputs("Some warning info...");
0066     return "warned";
0067 });
0068 
0069 Ts.setcall("test_setcallForall", function() {
0070     Ts.setcallForall("print_msgkey", function() {
0071         Ts.dbgputs(Ts.msgkey());
0072     });
0073     return "done";
0074 });
0075 
0076 Ts.setcall("test_toUpperFirst", function(arg) {
0077     return Ts.toUpperFirst(arg);
0078 });
0079 
0080 Ts.setcall("test_toLowerFirst", function(arg) {
0081     return Ts.toLowerFirst(arg);
0082 });
0083 
0084 Ts.setcall("test_loadProps", function(relpath) {
0085     Ts.loadProps(relpath);
0086     return "loaded";
0087 });
0088 
0089 Ts.setcall("test_getProp", function(relpath, phrase, prop) {
0090     Ts.loadProps(relpath);
0091     return Ts.getProp(phrase, prop);
0092 });
0093 
0094 Ts.setcall("test_setProp", function(phrase, prop, value) {
0095     Ts.setProp(phrase, prop, value);
0096     return Ts.getProp(phrase, prop);
0097 });
0098 
0099 Ts.setcall("test_normKey", function(phrase) {
0100     return Ts.normKey(phrase);
0101 });
0102 
0103 Ts.setcall("test_getConfString", function(key) {
0104     return Ts.getConfString(key);
0105 });
0106 
0107 Ts.setcall("test_getConfStringWithDefault", function(key, defValue) {
0108     return Ts.getConfString(key, defValue);
0109 });
0110 
0111 Ts.setcall("test_getConfBool", function(key) {
0112     return "" + Ts.getConfBool(key);
0113 });
0114 
0115 Ts.setcall("test_getConfBoolWithDefault", function(key, defValue) {
0116     return "" + Ts.getConfBool(key, defValue);
0117 });
0118 
0119 Ts.setcall("test_getConfNumber", function(key) {
0120     return "" + Ts.getConfNumber(key);
0121 });
0122 
0123 Ts.setcall("test_getConfNumberWithDefault", function(key, defValue) {
0124     return "" + Ts.getConfNumber(key, defValue);
0125 });