MCPcopy Create free account
hub / github.com/buggins/coolreader / split2

Method split2

crengine/src/lvstring.cpp:3924–3934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3922}
3923
3924bool lString16::split2( const lString16 & delim, lString16 & value1, lString16 & value2 )
3925{
3926 if ( empty() )
3927 return false;
3928 unsigned p = pos(delim);
3929 if ( p<=0 || p>=length()-delim.length() )
3930 return false;
3931 value1 = substr(0, p);
3932 value2 = substr(p+delim.length());
3933 return true;
3934}
3935
3936bool splitIntegerList( lString16 s, lString16 delim, int &value1, int &value2 )
3937{

Callers 7

readRectMethod · 0.80
readSizeMethod · 0.80
drawTextMethod · 0.80
DrawMethod · 0.80
addTocItemMethod · 0.80
splitIntegerListFunction · 0.80
convertHrefMethod · 0.80

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected