Branch: Tag:

2010-11-21

2010-11-21 12:42:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added the !-modifier for sscanf. Fixes [LysLysKOM 18812886].

7704:      test_equal([[ array_sscanf("hej","%s") ]], [[ ({ "hej" }) ]])   test_equal([[ array_sscanf("hej","%s%n") ]], [[ ({ "hej", 3 }) ]]) + test_equal([[ array_sscanf("hejhopp", "%*!3s%s%n") ]], [[ ({ "hopp", 4 }) ]])   test_eval_error([[ function f=array_sscanf; f("hej","%s% ") ]])      test_equal([[ array_sscanf("\x304b\x3066\x3044\x308a\x3087\x3046\x308a", "%[^\x3042\x3044\x3046\x3048\x304a]")[0] ]],