StrToNum | number conversion library , for char and wchar_t strings

 by   jovibor C++ Version: Current License: Apache-2.0

kandi X-RAY | StrToNum Summary

kandi X-RAY | StrToNum Summary

StrToNum is a C++ library. StrToNum has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

A header-only library to convert char and wchar_t text strings to numbers. It is completely based on the Microsoft's std::from_chars implementation from the standard header. The one significant difference though is that the ability to work with wchar_t type was added, because the C++ standard doesn't provide this functionality at the moment. StrToNum features std::(w)string_view as an input, so you are no longer obliged to have only null-terminated strings, which is mandatory in all std::strto* functions family. StrToNum also recognizes 0x and 0X prefixes as hex strings, when iBase is 0 or 16, which std::from_chars doesn't. As a return type StrToNum uses either std::optional (by default) or a newish and very convenient std::expected (through /std:c++latest), which either holds converted number or a from_chars_result struct, in case of converting error. Both these types are very similar. To use the std::expected version put the #define STN_USE_EXPECTED line before #include "StrToNum.h". Basically StrToNum is a thin wrapper over the std::from_chars machinery, with the convenient interface and the ability to work with wchar_t strings. Non-allocating, non-throwing, locale-independent.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              StrToNum has a low active ecosystem.
              It has 12 star(s) with 0 fork(s). There are 2 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              StrToNum has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of StrToNum is current.

            kandi-Quality Quality

              StrToNum has no bugs reported.

            kandi-Security Security

              StrToNum has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              StrToNum is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              StrToNum releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of StrToNum
            Get all kandi verified functions for this library.

            StrToNum Key Features

            No Key Features are available at this moment for StrToNum.

            StrToNum Examples and Code Snippets

            No Code Snippets are available at this moment for StrToNum.

            Community Discussions

            No Community Discussions are available at this moment for StrToNum.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install StrToNum

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/jovibor/StrToNum.git

          • CLI

            gh repo clone jovibor/StrToNum

          • sshUrl

            git@github.com:jovibor/StrToNum.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link