MCPcopy Create free account
hub / github.com/acl-dev/acl / scan_move

Method scan_move

lib_acl_cpp/src/stdlib/string.cpp:780–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780size_t string::scan_move()
781{
782 if (scan_ptr_ == NIL) {
783 return 0;
784 }
785
786 char *pEnd = acl_vstring_end(vbf_);
787 if (scan_ptr_ >= pEnd) {
788 clear();
789 return 0;
790 }
791
792 size_t len = pEnd - scan_ptr_;
793 acl_vstring_memmove(vbf_, scan_ptr_, len);
794 TERM(vbf_);
795 scan_ptr_ = STR(vbf_);
796
797 return len;
798}
799size_t string::operator >>(string* s)
800{
801 if (s == NIL) {

Callers 1

test_mainFunction · 0.80

Calls 2

acl_vstring_memmoveFunction · 0.85
clearFunction · 0.50

Tested by 1

test_mainFunction · 0.64