svghmi/widget_display.ysl2
branchsvghmi
changeset 3204 856f4698a0a8
parent 3142 2637bb6a6bb0
child 3232 7bdb766c2a4d
equal deleted inserted replaced
3200:75cb73b4a606 3204:856f4698a0a8
    79         index_access: /^\[(\d+)\]/,
    79         index_access: /^\[(\d+)\]/,
    80         sign: /^[+-]/
    80         sign: /^[+-]/
    81     }
    81     }
    82 
    82 
    83     function sprintf(key) {
    83     function sprintf(key) {
    84         // `arguments` is not an array, but should be fine for this call
    84         // arguments is not an array, but should be fine for this call
    85         return sprintf_format(sprintf_parse(key), arguments)
    85         return sprintf_format(sprintf_parse(key), arguments)
    86     }
    86     }
    87 
    87 
    88     function vsprintf(fmt, argv) {
    88     function vsprintf(fmt, argv) {
    89         return sprintf.apply(null, [fmt].concat(argv || []))
    89         return sprintf.apply(null, [fmt].concat(argv || []))