Giter Club home page Giter Club logo

Comments (7)

aregtech avatar aregtech commented on June 4, 2024 1

we merge issues #16 , #17 and #18 to the
https://github.com/aregtech/areg-sdk/tree/20220206-stl17-migration

from areg-sdk.

biwiki avatar biwiki commented on June 4, 2024 1

Sorry to say it is still far away from completion, there are lot of things to be done since String is used heavily in the library core

from areg-sdk.

aregtech avatar aregtech commented on June 4, 2024

Good day, @biwiki.
Can you please inform whether this ticket is completed or there are still things to do?
I am completing the other container migration an would like to start preparing merging with master.
Thank you!

from areg-sdk.

aregtech avatar aregtech commented on June 4, 2024

Hi @biwiki . Thank you for your reply. It's OK, i just wanted to know whether i need to refactor String class or not. On the first step, i'll refactor class String, on second step String with std::string (you were replacing, right?).

from areg-sdk.

biwiki avatar biwiki commented on June 4, 2024

I think I chose to follow the other direction by replacing String with std::string, and deprecating String at the end. And I had also been using other C++17 features along the way, so perhaps it might not be good to merge to master

from areg-sdk.

aregtech avatar aregtech commented on June 4, 2024

At the begin I also tried to do so for containers. For example, tried completely replace TEArrayList with std::vector. It took me very long time and at the end end-up with some mess 😁 There were several problems that needed to fix in parallel. Then i decided to overwrite TEArrayList to keep API maximum close. It worked much better. Did same with other containers. After this refactoring, i have compatibility of containers, but not really the API:

  • TEArrayList --> std::vector
  • TEHashMap --> std::unordered_map
  • TEStack --> std::deque
  • TELinkedList --> std::list

Changes are in 20220528-adapt-stl
Same I'll do with the String. Then I'll try wherever is possible to use STL objects.
As always, your suggestions / comments are welcomed

from areg-sdk.

aregtech avatar aregtech commented on June 4, 2024

Instead of replacing String or const char * with std::string, implemented String as a wrapper of std::string.
All fixes are in 20220701-candidate.
Closing the ticket as fixed.

from areg-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.