is there a substring method in bstring library? How to get sub string?
In the C API you would do this as follows:
bstring orgstr, newstr; ... bassignmidstr (newstr=bfromcstr(""), orgstr, start, length);
Or, if you just need a reference:
bstring orgstr; struct tagbstring newrstr; ... bmid2tbstr (newrstr, orgstr, start, length);
In the C++ API you would do this as follows:
CBstring orgstr; struct tagbstring tmp; ... bmid2tbstr (tmp, orgstr, start, length); CBString newstr(tmp);
Log in to post a comment.
is there a substring method in bstring library?
How to get sub string?
In the C API you would do this as follows:
Or, if you just need a reference:
In the C++ API you would do this as follows: