Menu

#2814 base: Add utility function for parsing strings as integers

5.18.04
fixed
None
enhancement
base
-
minor
False
2018-03-26
2018-03-19
No

Add a utility function for parsing strings as integers. This is useful in many places, for example in ticket [#2805] and in the GetEnv class.

Related

Tickets: #2805
Wiki: ChangeLog-5.18.04

Discussion

  • Anders Widell

    Anders Widell - 2018-03-22
    • status: accepted --> review
     
  • Anders Widell

    Anders Widell - 2018-03-26
    • status: review --> fixed
     
  • Anders Widell

    Anders Widell - 2018-03-26

    commit 9c846d28a5dac616b2619d1fe274105d463d0d20 (HEAD -> develop, origin/develop)
    Author: Anders Widell an..@..com
    Date: Mon Mar 26 13:52:49 2018 +0200

    base: Add functions for parsing a string as an integer [#2814]
    
    The new functions StrToInt64 and StrToUint64 parse a string as a signed and
    unsigned 64-bit integer, respectively. Prefixes 0 for octal and 0x for
    hexadecimal are supported, as well as suffixes k, M and G for kilobytes,
    megabytes and gigabytes, respectively.
    
     

Log in to post a comment.