Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

[perl #37371] [PATCH] update for t/op/string_cs.t to find word boundaries

已查看 0 次
跳至第一个未读帖子

Patrick R. Michaud

未读,
2005年11月16日 12:09:032005/11/16
收件人 perl6-i...@perl.org
Attached is a patch that changes the "find word" test in string_cs.t
to use the find_cclass and find_not_cclass opcodes to locate word
boundaries.

This test doesn't work exactly the way Leo has envisioned it (creating
a special .CCLASS_* value for word boundaries), but it demonstrates
how I think PIR programmers will typically locate word boundaries.

Sent as a patch rather than applied directly to give others an
opportunity to review and comment.

Pm

find_word.patch
0 个新帖子