MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / is_str_less

Function is_str_less

modules/gui/gui/src/backend/text_server/ustring.h:523–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521
522template <typename L, typename R>
523_FORCE_INLINE_ bool is_str_less(const L* l_ptr, const R* r_ptr)
524{
525 while (true)
526 {
527 const char32_t l = *l_ptr;
528 const char32_t r = *r_ptr;
529
530 if (l == 0 && r == 0)
531 {
532 return false;
533 }
534 else if (l == 0)
535 {
536 return true;
537 }
538 else if (r == 0)
539 {
540 return false;
541 }
542 else if (l < r)
543 {
544 return true;
545 }
546 else if (l > r)
547 {
548 return false;
549 }
550
551 l_ptr++;
552 r_ptr++;
553 }
554}
555
556/* end of namespace */
557

Callers 2

operator<Method · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected