-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cista::raw::string overload of parse_value #19
Add cista::raw::string overload of parse_value #19
Conversation
d7196b9
to
c5e330b
Compare
This one only allocates if necessary.
c5e330b
to
df3e349
Compare
include/utl/parser/csv.h
Outdated
cista::raw::string out; | ||
|
||
if (arg.contains(R"("")")) { | ||
std::string mut_string = arg.to_str(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a cista::generic_string::erase
function:
felixguendling/cista#218
With this, I hope it's possible to eliminate this temporary allocation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems useful, but I can't get pkg to not reset my changes as soon as I edit .pkg to update cista.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg will for each dependency
- checkout the latest commit found in any
.pkg
file, if the commit ref does not match - if the commit ref matches, nothing will change (so you can do changes)
So the moment you create a commit in a dependency, you need to change the referenced version in the .pkg
file to this latest commit, otherwise the previous version will be checked out.
Maybe it's better to use |
This one only allocates if necessary.