Gtk2::S...w2::Iter(3)

πŸ“¦
version 0.12 Β· 2 versions
, in fedora 43

πŸ’– Gtk2::SourceView2::Iter πŸ’–

okay so bestie, welcome to Gtk2::SourceView2::Iter β€” she's a lil class from the User Contributed Perl Documentation corner of the universe, and she is literally just here to do search things inside a Gtk2::SourceView2 buffer. that's it. that's her whole job. and she eats. πŸŽ€


✨ NAME ✨

Gtk2::SourceView2::Iter β€” no cap, that's the name, that's the whole vibe. πŸ¦‹


🌸 METHODS 🌸

(match_start, match_end) = Gtk2::SourceView2::Iter->backward_search ($iter, $str, $flags, $limit=NULL)

(match_start, match_end) = Gtk2::SourceView2::Iter->backward_search ($iter, $str, $flags, $limit=NULL)

bestie she looks backwards πŸ”™ and hands you back a pair β€” match_start and match_end. iconic behaviour honestly.

  • $iter β€” a Gtk2::TextIter, the lil starting point she searches from πŸ’…
  • $str β€” a string, the thing you're hunting for πŸ”
  • $flags β€” a Gtk2::SourceView2::SearchFlags, aka your search settings βš™οΈ
also she takes a $limit=NULL which defaults to NULL, so if you don't pass one, she just does her thing. 🫢

Gtk2::SourceView2::Iter->forward_search ($iter, $str, $flags)

Gtk2::SourceView2::Iter->forward_search ($iter, $str, $flags)

and this one goes forward ➑️ because sometimes you're looking ahead, main character energy, eyes on the future. ✨

  • $iter β€” a Gtk2::TextIter 🌸
  • $str β€” a string 🌸
  • $flags β€” a Gtk2::SourceView2::SearchFlags 🌸

🌈 ENUMS AND FLAGS 🌈

flags Gtk2::SourceView2::SearchFlags

the vibe check menu, choose your fighter:

  • 'visible-only' / 'GTK_SOURCE_SEARCH_VISIBLE_ONLY' β€” only the visible stuff, nothing sneaky πŸ™ˆ
  • 'text-only' / 'GTK_SOURCE_SEARCH_TEXT_ONLY' β€” text only, periodt πŸ’…
  • 'case-insensitive' / 'GTK_SOURCE_SEARCH_CASE_INSENSITIVE' β€” she does NOT care about your capitalisation, lowercase, uppercase, whatever, all the same to her, so real of her πŸ’€

πŸ‘€ SEE ALSO πŸ‘€

  • Gtk2::SourceView2 β€” her mother, her origin story, go read that one too 🧚

Copyright (C) 2009 by Emmanuel Rodriguez

like, respectfully, give credit where credit is due. 🫢


so yeah, that's the whole page, bestie β€” perl v5.42.0, dated 2025-07-25, from the Gtk2::S...w2::Iter(3) era of the manual, and she ATE. mwah. πŸ’‹βœ¨

πŸ“¦ where this page comes from