1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Main Page - Header</title>
<link href="inti.css" rel="stylesheet" type="text/css">
<meta name="description" content="Reference Manual">
<meta name="author" content="The Inti Development Team">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(231, 232, 231);"
link="#000099" vlink="#990099" alink="#000099">
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
<tbody>
<tr
style="color: rgb(255, 255, 204); font-family: helvetica,arial,sans-serif; font-weight: bold;">
<td
style="vertical-align: top; background-color: rgb(0, 55, 85); text-align: center;">
<font size="+1">Reference Manual</font> </td>
</tr>
<tr>
<td valign="top" height="116" background="../images/top-fade.png"
align="center"><img src="../images/inti-logo.png" alt="Inti Logo"> <br>
</td>
</tr>
</tbody>
</table>
</body>
</html>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>Inti::Gtk::SourceIter Class Reference</h1>A GtkTextIter object that supports case-insensitive searching.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="sourceiter_8h-source.html">inti/gtk-sourceview/sourceiter.h</a>></code>
<p>
<a href="classInti_1_1Gtk_1_1SourceIter-members.html">List of all members.</a><h2>Public Member Functions</h2>
<tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr>
<ul>
<li><a name="z11_0" doxytag="Inti::Gtk::SourceIter::SourceIter"></a>
<a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z11_0">SourceIter</a> ()
<dl class="el"><dd class="mdescRight">Construct an properly initialized source iterator. <br><br></dl><li><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z11_1">SourceIter</a> (GtkTextIter *iter)
<dl class="el"><dd class="mdescRight">Construct a new source iterator from an existing GtkTextIter. </em> <a href="#z11_1"></a><em><br><br></dl><li><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z11_2">SourceIter</a> (GtkTextIter *iter, bool copy)
<dl class="el"><dd class="mdescRight">Construct a new source iterator from an existing GtkTextIter. </em> <a href="#z11_2"></a><em><br><br></dl><li><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z11_3">SourceIter</a> (const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> &src)
<dl class="el"><dd class="mdescRight">Copy constructor. </em> <a href="#z11_3"></a><em><br><br></dl><li><a name="z11_4" doxytag="Inti::Gtk::SourceIter::~SourceIter"></a>
<a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z11_4">~SourceIter</a> ()
<dl class="el"><dd class="mdescRight">Destructor. <br><br></dl><li><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> & <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z11_5">operator=</a> (const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> &src)
<dl class="el"><dd class="mdescRight">Assignment operator. </em> <a href="#z11_5"></a><em><br><br></dl></ul>
<tr><td colspan="2"><div class="groupHeader">Methods</div></td></tr>
<ul>
<li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_1">forward_search</a> (const String &str, const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *limit=0)
<dl class="el"><dd class="mdescRight">Do a case-sensitive search forward for <em>str</em>. </em> <a href="#z12_1"></a><em><br><br></dl><li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_3">forward_search</a> (const String &str, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_start, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_end, const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *limit=0)
<dl class="el"><dd class="mdescRight">Do a case-sensitive search forward for <em>str</em>. </em> <a href="#z12_3"></a><em><br><br></dl><li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_5">forward_search</a> (const String &str, <a class="el" href="namespaceInti_1_1Gtk.html#a0">SourceSearchFlagsField</a> flags, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_start, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_end, const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *limit=0)
<dl class="el"><dd class="mdescRight">Searches forward for <em>str</em>. </em> <a href="#z12_5"></a><em><br><br></dl><li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_7">backward_search</a> (const String &str, const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *limit=0)
<dl class="el"><dd class="mdescRight">Do a case-sensitive search backward for <em>str</em>. </em> <a href="#z12_7"></a><em><br><br></dl><li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_9">backward_search</a> (const String &str, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_start, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_end, const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *limit=0)
<dl class="el"><dd class="mdescRight">Do a case-sensitive search backward for <em>str</em>. </em> <a href="#z12_9"></a><em><br><br></dl><li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_11">backward_search</a> (const String &str, <a class="el" href="namespaceInti_1_1Gtk.html#a0">SourceSearchFlagsField</a> flags, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_start, <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *match_end, const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> *limit=0)
<dl class="el"><dd class="mdescRight">Searches backward for <em>str</em>. </em> <a href="#z12_11"></a><em><br><br></dl><li>bool <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html#z12_12">find_matching_bracket</a> ()
<dl class="el"><dd class="mdescRight">Tries to match the bracket character currently at the iter with its opening/closing counterpart, and if found moves iter to the position where it was found. </em> <a href="#z12_12"></a><em><br><br></dl></ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A GtkTextIter object that supports case-insensitive searching.
<p>
<a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> is a Gtk::TextIter extension that supports case-insensitive forward and backward searching.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a name="z11_1" doxytag="Inti::Gtk::SourceIter::SourceIter"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Inti::Gtk::SourceIter::SourceIter </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">GtkTextIter * </td>
<td class="mdname1" valign="top" nowrap> <em>iter</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [explicit]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new source iterator from an existing GtkTextIter.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>iter</em> </td><td>A pointer to a GtkTextIter.</td></tr>
</table>
</dl>
<br>
The <em>iter</em> can be a newly created GtkTextIter or an existing GtkTextIter. The <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> object created is a temporary object. It doesn't take over the ownership of GtkTextIter and GtkTextIter is not freed by the destructor. </td>
</tr>
</table>
<a name="z11_2" doxytag="Inti::Gtk::SourceIter::SourceIter"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Inti::Gtk::SourceIter::SourceIter </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">GtkTextIter * </td>
<td class="mdname" nowrap> <em>iter</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>bool </td>
<td class="mdname" nowrap> <em>copy</em></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Construct a new source iterator from an existing GtkTextIter.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>iter</em> </td><td>A pointer to a GtkTextIter. </td></tr>
<tr><td valign=top><em>copy</em> </td><td>Whether the <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> object should make a copy of GtkTextIter or not.</td></tr>
</table>
</dl>
<br>
The <em>iter</em> can be a newly created GtkTextIter or an existing GtkTextIter. If <em>copy</em> is true <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> will make a copy of GtkTextIter. If <em>copy</em> is false <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> wont make a copy but instead takes over the ownership of GtkTextIter. Either way, the destructor will free GtkTextIter when the <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> object is destroyed. This constructor is used by G::Boxed::wrap() to wrap GtkTextIter objects in a C++ wrapper. </td>
</tr>
</table>
<a name="z11_3" doxytag="Inti::Gtk::SourceIter::SourceIter"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> Inti::Gtk::SourceIter::SourceIter </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>src</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Copy constructor.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>src</em> </td><td>The source iterator. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="z12_11" doxytag="Inti::Gtk::SourceIter::backward_search"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::backward_search </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const String & </td>
<td class="mdname" nowrap> <em>str</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceInti_1_1Gtk.html#a0">SourceSearchFlagsField</a> </td>
<td class="mdname" nowrap> <em>flags</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_start</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_end</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>limit</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Searches backward for <em>str</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em> </td><td>The search string. </td></tr>
<tr><td valign=top><em>flags</em> </td><td>The bitmask of flags specifying how the search is done. </td></tr>
<tr><td valign=top><em>match_start</em> </td><td>The return location for start of match, or null. </td></tr>
<tr><td valign=top><em>match_end</em> </td><td>The return location for end of match, or null. </td></tr>
<tr><td valign=top><em>limit</em> </td><td>The location of last possible match_start, or null for start of buffer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Whether a match was found. </dd></dl>
</td>
</tr>
</table>
<a name="z12_9" doxytag="Inti::Gtk::SourceIter::backward_search"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::backward_search </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const String & </td>
<td class="mdname" nowrap> <em>str</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_start</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_end</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>limit</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Do a case-sensitive search backward for <em>str</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em> </td><td>The search string. </td></tr>
<tr><td valign=top><em>match_start</em> </td><td>The return location for start of match, or null. </td></tr>
<tr><td valign=top><em>match_end</em> </td><td>The return location for end of match, or null. </td></tr>
<tr><td valign=top><em>limit</em> </td><td>The location of last possible match_start, or null for start of buffer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Whether a match was found.</dd></dl>
<br>
The <a class="el" href="namespaceInti_1_1Gtk.html#a4a1">Gtk::SOURCE_SEARCH_VISIBLE_ONLY</a> flag is used so the match may have invisible text interspersed in <em>str</em> (i.e. str will be a possibly-noncontiguous subsequence of the matched range). </td>
</tr>
</table>
<a name="z12_7" doxytag="Inti::Gtk::SourceIter::backward_search"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::backward_search </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const String & </td>
<td class="mdname" nowrap> <em>str</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>limit</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Do a case-sensitive search backward for <em>str</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em> </td><td>The search string. </td></tr>
<tr><td valign=top><em>limit</em> </td><td>The location of last possible match_start, or null for start of buffer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Whether a match was found.</dd></dl>
<br>
The <a class="el" href="namespaceInti_1_1Gtk.html#a4a1">Gtk::SOURCE_SEARCH_VISIBLE_ONLY</a> flag is used so the match may have invisible text interspersed in <em>str</em> (i.e. str will be a possibly-noncontiguous subsequence of the matched range). </td>
</tr>
</table>
<a name="z12_12" doxytag="Inti::Gtk::SourceIter::find_matching_bracket"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::find_matching_bracket </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Tries to match the bracket character currently at the iter with its opening/closing counterpart, and if found moves iter to the position where it was found.
<p>
<dl compact><dt><b>Returns:</b></dt><dd><em>true</em> if a matching bracket is found and the iter moved.</dd></dl>
<br>
If the current bracket is an opening bracket the buffer is searched in a forward direction. If the current bracket is a closing bracket the buffer is searched in a backward direction. </td>
</tr>
</table>
<a name="z12_5" doxytag="Inti::Gtk::SourceIter::forward_search"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::forward_search </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const String & </td>
<td class="mdname" nowrap> <em>str</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="namespaceInti_1_1Gtk.html#a0">SourceSearchFlagsField</a> </td>
<td class="mdname" nowrap> <em>flags</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_start</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_end</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>limit</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Searches forward for <em>str</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em> </td><td>The search string. </td></tr>
<tr><td valign=top><em>flags</em> </td><td>The bitmask of flags specifying how the search is done. </td></tr>
<tr><td valign=top><em>match_start</em> </td><td>The return location for start of match, or null. </td></tr>
<tr><td valign=top><em>match_end</em> </td><td>The return location for end of match, or null. </td></tr>
<tr><td valign=top><em>limit</em> </td><td>The bound for the search, or null for the end of the buffer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Whether a match was found</dd></dl>
<br>
Any match is returned by setting <em>match_start</em> to the first character of the match and <em>match_end</em> to the first character after the match. The search will not continue past <em>limit</em>. Note that a search is a linear or O(n) operation, so you may wish to use limit to avoid locking up your UI on large buffers. If the <a class="el" href="namespaceInti_1_1Gtk.html#a4a1">Gtk::SOURCE_SEARCH_VISIBLE_ONLY</a> flag is present, the match may have invisible text interspersed in <em>str</em> (i.e. str will be a possibly-noncontiguous subsequence of the matched range). Similarly, if you specify <a class="el" href="namespaceInti_1_1Gtk.html#a4a2">Gtk::SOURCE_SEARCH_TEXT_ONLY</a>, the match may have pixbufs or child widgets mixed inside the matched range. If these flags are not given, the match must be exact; the special 0xFFFC character in str will match embedded pixbufs or child widgets. If you specify the <a class="el" href="namespaceInti_1_1Gtk.html#a4a3">Gtk::SOURCE_SEARCH_CASE_INSENSITIVE</a> flag, the text will be matched regardless of what case it is in. </td>
</tr>
</table>
<a name="z12_3" doxytag="Inti::Gtk::SourceIter::forward_search"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::forward_search </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const String & </td>
<td class="mdname" nowrap> <em>str</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_start</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>match_end</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>limit</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Do a case-sensitive search forward for <em>str</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em> </td><td>The search string. </td></tr>
<tr><td valign=top><em>match_start</em> </td><td>The return location for start of match, or null. </td></tr>
<tr><td valign=top><em>match_end</em> </td><td>The return location for end of match, or null. </td></tr>
<tr><td valign=top><em>limit</em> </td><td>The bound for the search, or null for the end of the buffer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Whether a match was found</dd></dl>
<br>
Any match is returned by setting <em>match_start</em> to the first character of the match and <em>match_end</em> to the first character after the match. The search will not continue past <em>limit</em>. Note that a search is a linear or O(n) operation, so you may wish to use limit to avoid locking up your UI on large buffers. The <a class="el" href="namespaceInti_1_1Gtk.html#a4a1">Gtk::SOURCE_SEARCH_VISIBLE_ONLY</a> flag is used so the match may have invisible text interspersed in <em>str</em> (i.e. str will be a possibly-noncontiguous subsequence of the matched range). </td>
</tr>
</table>
<a name="z12_1" doxytag="Inti::Gtk::SourceIter::forward_search"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool Inti::Gtk::SourceIter::forward_search </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const String & </td>
<td class="mdname" nowrap> <em>str</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> * </td>
<td class="mdname" nowrap> <em>limit</em> = 0</td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Do a case-sensitive search forward for <em>str</em>.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>str</em> </td><td>The search string. </td></tr>
<tr><td valign=top><em>limit</em> </td><td>The bound for the search, or null for the end of the buffer. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Whether a match was found</dd></dl>
<br>
The search will not continue past <em>limit</em>. Note that a search is a linear or O(n) operation, so you may wish to use limit to avoid locking up your UI on large buffers. The <a class="el" href="namespaceInti_1_1Gtk.html#a4a1">Gtk::SOURCE_SEARCH_VISIBLE_ONLY</a> flag is used so the match may have invisible text interspersed in <em>str</em> (i.e. str will be a possibly-noncontiguous subsequence of the matched range). </td>
</tr>
</table>
<a name="z11_5" doxytag="Inti::Gtk::SourceIter::operator="></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a>& Inti::Gtk::SourceIter::operator= </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="classInti_1_1Gtk_1_1SourceIter.html">SourceIter</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>src</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Assignment operator.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>src</em> </td><td>The source iterator. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="sourceiter_8h-source.html">sourceiter.h</a></ul>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Main Page - Footer</title>
<meta name="description" content="Reference Manual">
<meta name="author" content="The Inti Development Team">
</head>
<body>
<br>
<br>
<table cellpadding="0" cellspacing="0" border="0" style="width: 100%;">
<tbody>
<tr>
<td valign="top">
<hr></td>
</tr>
<tr>
<td valign="top" height="116"
background="../images/bottom-fade.png">
<address><small>Generated on Wed Aug 27 21:17:27 2003 for Inti-SourceView by <a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" align="middle" border="0" width="110" height="53"> </a>
1.3.2 written by <a href="mailto:dimitri@stack.nl">Dimitri
van Heesch</a>, © 1997-2002</small></address>
</td>
</tr>
<tr>
<td style="vertical-align: top; background-color: rgb(0, 55, 85);"><br>
</td>
</tr>
</tbody>
</table>
<br>
</body>
</html>
|