Searched refs:stof (Results 1 - 2 of 2) sorted by relevance

/external/libcxx/test/std/strings/string.conversions/
H A Dstof.pass.cpp15 // float stof(const string& str, size_t *idx = 0);
16 // float stof(const wstring& str, size_t *idx = 0);
24 assert(std::stof("0") == 0);
25 assert(std::stof(L"0") == 0);
26 assert(std::stof("-0") == 0);
27 assert(std::stof(L"-0") == 0);
28 assert(std::stof("-10") == -10);
29 assert(std::stof(L"-10.5") == -10.5);
30 assert(std::stof(" 10") == 10);
31 assert(std::stof(
[all...]
/external/libcxx/src/
H A Dstring.cpp315 stof(const string& str, size_t* idx) function
317 return as_float<float>( "stof", str, idx );
321 stof(const wstring& str, size_t* idx) function
323 return as_float<float>( "stof", str, idx );

Completed in 171 milliseconds