Skip to content

[Core] create stringhelper - #1995

Merged
ice0 merged 3 commits into
synfig:masterfrom
rodolforg:core-create-stringhelper
Feb 17, 2021
Merged

ice0 merged 3 commits into
synfig:masterfrom
rodolforg:core-create-stringhelper

Conversation

@rodolforg

Copy link
Copy Markdown
Contributor

No description provided.

@rodolforg

Copy link
Copy Markdown
Contributor Author

@ice0 what do you think about this PR? Useful?
Should we move strprintf and alike from etl to it?

@rodolforg
rodolforg force-pushed the core-create-stringhelper branch from 745e9c2 to 99ca666 Compare January 23, 2021 22:27
@ice0

ice0 commented Jan 24, 2021

Copy link
Copy Markdown
Collaborator

Should we move strprintf and alike from etl to it?

I was planning to replace strprintf with fmt::format during GSoC 2021 (https://github.com/fmtlib/fmt).
Any other functions can be moved to string_helper.

@rodolforg

Copy link
Copy Markdown
Contributor Author

Oh the dependecy hell...
Would it work fine with gettext and transifex?
Would it give us any advantage?

Anyway, what else should I move to this PR? Besides strprintf/strscanf, there are only filepath-related functions in stringf.h

@ice0

ice0 commented Jan 24, 2021

Copy link
Copy Markdown
Collaborator

Oh the dependecy hell...

Agree. The only reason to switch to fmt is because fmt is implementation of C++20 std::format. Oh, and speed. https://github.com/fmtlib/fmt#speed-tests

Would it work fine with gettext and transifex?

Sure. There is no changes here.

Would it give us any advantage?

Not so much. But better speed, better documentation, errors in format strings at compile time (most important part) and also it's already in C++20 standard.

Anyway, what else should I move to this PR? Besides strprintf/strscanf, there are only filepath-related functions in stringf.h

I think better to merge this PR, and do other stuff in other PRs.
Move strprintf/strscanf as separate PR as it's mostly copy-paste work.
Move filepath-related functions to FileSystem class?

@rodolforg
rodolforg force-pushed the core-create-stringhelper branch from 99ca666 to a509ebd Compare February 13, 2021 02:13
@ice0
ice0 merged commit 4ddd22d into synfig:master Feb 17, 2021
@ice0

ice0 commented Feb 17, 2021

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@ice0 ice0 added the Backport label Apr 7, 2021
@rodolforg rodolforg mentioned this pull request Apr 16, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request Apr 17, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request Apr 21, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request Apr 26, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 15, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 26, 2021
rodolforg added a commit to rodolforg/synfig that referenced this pull request May 27, 2021
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
@rodolforg
rodolforg deleted the core-create-stringhelper branch November 2, 2021 12:43
@rodolforg rodolforg removed the Backport label Feb 2, 2024
@rodolforg rodolforg added this to the v1.4.2 milestone Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants