c++ std::string to boolean

前端 未结 5 851
天命终不由人
天命终不由人 2021-01-01 13:16

I am currently reading from an ini file with a key/value pair. i.e.

isValid = true

When get the key/value pair I need to convert a string

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-01 14:03

    Suggestions for case-insenstive string comparisions on C++ strings can be found here: Case insensitive string comparison in C++

提交回复
热议问题