rizin icon indicating copy to clipboard operation
rizin copied to clipboard

Extend string search

Open Rot127 opened this issue 10 months ago • 2 comments

Is your feature request related to a problem? Please describe.

The string search could use some more extensions and fine-tuning options for the user.

Describe the solution you'd like

  • Allow to define "printable" and "non-printable" characters.
  • Count the grapheme length of a string and provide it in the search hit.

Describe alternatives you've considered

None.

Additional context

Left over from: https://github.com/rizinorg/rizin/pull/4919

Rot127 avatar Feb 24 '25 16:02 Rot127

Please elaborate more on how you imagine defining printable and non-printable characters.

notxvilka avatar May 23 '25 14:05 notxvilka

Some instructions stop printing at "non-printable" characters. Those are of course invalid unicode code points. But for some commands those are also tab, newline or color code escape sequences. What is deemed "un-printable" is depending on the use case (e.g. color escape sequences).

So these should be user defined by some option which takes a list of unicode code points.

Rot127 avatar May 23 '25 19:05 Rot127