用lrs_save_searched_string时,提示不能搜索到左边界字符?
本帖最后由 kasad 于 2012-9-26 15:32 编辑我用户lrs_save_param 和lr_output_message 可以查看到字符\b\x04
但用lrs_save_searched_string("socket0","buf5","terminal_ID","LB=\\b\\x04","RB=\\x03\\x00\\x00",1,1,-1);总是提示fiCalcSearchedStringOffset: Left boundary occurs fewer times than ordinal
以下是我的replay log信息
lrs_save_param(socket0, buf5, test, 20, 100)
Action.c(18): \xc0\x01\x80.\x01,0 )\x86'\x00\x02\x00@\x02\x18100001\t100001\x00p\xff\xff\xff\xff\x18100002\t100002\x03\x00\x00 \b\x02\xe0,b\x1c\x00~\x00\x12\x05(\x10\x01\x00\x04\xc0\x01\x80\b\x01\x06p@\x03\b\x04\b\x03\x00\x00 \b\x02\xe0,b\x1c\x00~\x00\x12\x05(\x10\x01
Action.c(19): lrs_save_searched_string(socket0, buf5, terminal_ID, LB=\b\x04, RB=\x03\x00\x00, 1, 1, -1)
Action.c(19): fiCalcSearchedStringOffset: Left boundary occurs fewer times than ordinal buf5的数据如下:我要获取红色字体的数据
recv buf5 814
"\x03\x00\x00"
"F\b"
"\x02\xe0"
",b"
"\x1c\x00"
"~"
"\x00"
"8"
"\x05"
"("
"\x10\x01\x00\x04\xc0\x01\x80"
"."
"\x01"
",0 )"
"\x86"
"'"
"\x00\x02\x00"
"@"
"\x02\x18"
"100001\t100001"
"\x00"
"p"
"\xff\xff\xff\xff\x18"
"100002\t100002"
"\x03\x00\x00"
" \b"
"\x02\xe0"
",b"
"\x1c\x00"
"~"
"\x00\x12\x05"
"("
"\x10\x01\x00\x04\xc0\x01\x80"
"\b"
"\x01\x06"
"p@"
"\x03"
"\b"
"\x04"
"\b"
"\x03\x00\x00"
" \b"
"\x02\xe0"
",b" 请问该如何获取? 谢谢 xzf2001 像这类 需要转义符吧
页:
[1]