MCPcopy Create free account
hub / github.com/crownengine/crown / strConsumeTo

Function strConsumeTo

3rdparty/bx/src/debug.cpp:877–891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

875#elif BX_CONFIG_CALLSTACK_USE_EXECINFO
876
877 StringView strConsumeTo(StringView& _input, const StringView& _find)
878 {
879 const StringView to = strFind(_input, _find);
880
881 if (!to.isEmpty() )
882 {
883 const StringView result(_input.getPtr(), to.getPtr() );
884
885 _input.set(to.getTerm(), _input.getTerm() );
886
887 return result;
888 }
889
890 return StringView();
891 }
892
893 int32_t writeCallstack(WriterI* _writer, const uintptr_t* _stack, uint32_t _num, Error* _err)
894 {

Callers 1

writeCallstackFunction · 0.85

Calls 4

strFindFunction · 0.85
StringViewClass · 0.50
isEmptyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected