#include <xtl_primary.h>
Static Public Member Functions | |
template<typename SubstrT > | |
static size_t | bang_find (SubstrT &edge_) |
Implements repeatable search algorithm for beginning of the user input. | |
template<typename SubstrT > | |
static size_t | find (SubstrT &edge_) |
Implements search algorithm for beginning of the user input. | |
template<typename SubstrT > | |
static size_t | match (SubstrT &edge_) |
Implements match algorithm for beginning of the user input. |
Definition at line 3355 of file xtl_primary.h.
static size_t cttl_impl::xtl_position_bof::bang_find | ( | SubstrT & | edge_ | ) | [static] |
Implements repeatable search algorithm for beginning of the user input.
SubstrT | specifies type of the parseable substring. Can be either cttl::const_edge or cttl::edge . |
edge_ | reference to the parseable substring. |
Definition at line 3429 of file xtl_primary.h.
03430 { 03431 return find( edge_ ); 03432 }
static size_t cttl_impl::xtl_position_bof::find | ( | SubstrT & | edge_ | ) | [static] |
Implements search algorithm for beginning of the user input.
SubstrT | specifies type of the parseable substring. Can be either cttl::const_edge or cttl::edge . |
edge_ | reference to the parseable substring. |
Definition at line 3406 of file xtl_primary.h.
03407 { 03408 // set beginning of the substring 03409 edge_.first.offset( 0 ); 03410 CTTL_TRACE_RESULT( true, 'A' ); 03411 return 0; 03412 }
static size_t cttl_impl::xtl_position_bof::match | ( | SubstrT & | edge_ | ) | [static] |
Implements match algorithm for beginning of the user input.
SubstrT | specifies type of the parseable substring. Can be either cttl::const_edge or cttl::edge . |
edge_ | reference to the parseable substring. |
SubstrT::string_T::npos
, indicating that the evaluation algorithm has failed. Definition at line 3380 of file xtl_primary.h.
03381 { 03382 if ( edge_.first.offset() == 0 ) { 03383 CTTL_TRACE_RESULT( true, 'A' ); 03384 return 0; 03385 } 03386 03387 CTTL_TRACE_RESULT( false, 'A' ); 03388 return SubstrT::string_T::npos; 03389 }