diff options
Diffstat (limited to 'libcxx/src/string.cpp')
-rw-r--r-- | libcxx/src/string.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/libcxx/src/string.cpp b/libcxx/src/string.cpp index 946e915af6e..c1e6ab06858 100644 --- a/libcxx/src/string.cpp +++ b/libcxx/src/string.cpp @@ -83,7 +83,7 @@ stoi(const string& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoi: no conversion"); throw out_of_range("stoi: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -104,7 +104,7 @@ stoi(const wstring& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoi: no conversion"); throw out_of_range("stoi: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -123,7 +123,7 @@ stol(const string& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stol: no conversion"); throw out_of_range("stol: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -142,7 +142,7 @@ stol(const wstring& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stol: no conversion"); throw out_of_range("stol: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -161,7 +161,7 @@ stoul(const string& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoul: no conversion"); throw out_of_range("stoul: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -180,7 +180,7 @@ stoul(const wstring& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoul: no conversion"); throw out_of_range("stoul: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -199,7 +199,7 @@ stoll(const string& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoll: no conversion"); throw out_of_range("stoll: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -218,7 +218,7 @@ stoll(const wstring& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoll: no conversion"); throw out_of_range("stoll: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -237,7 +237,7 @@ stoull(const string& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoull: no conversion"); throw out_of_range("stoull: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -256,7 +256,7 @@ stoull(const wstring& str, size_t* idx, int base) if (r == 0) throw invalid_argument("stoull: no conversion"); throw out_of_range("stoull: out of range"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS } if (idx) *idx = static_cast<size_t>(ptr - p); @@ -277,7 +277,7 @@ stof(const string& str, size_t* idx) throw out_of_range("stof: out of range"); if (ptr == p) throw invalid_argument("stof: no conversion"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS if (idx) *idx = static_cast<size_t>(ptr - p); return static_cast<float>(r); @@ -297,7 +297,7 @@ stof(const wstring& str, size_t* idx) throw out_of_range("stof: out of range"); if (ptr == p) throw invalid_argument("stof: no conversion"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS if (idx) *idx = static_cast<size_t>(ptr - p); return static_cast<float>(r); @@ -317,7 +317,7 @@ stod(const string& str, size_t* idx) throw out_of_range("stod: out of range"); if (ptr == p) throw invalid_argument("stod: no conversion"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS if (idx) *idx = static_cast<size_t>(ptr - p); return r; @@ -337,7 +337,7 @@ stod(const wstring& str, size_t* idx) throw out_of_range("stod: out of range"); if (ptr == p) throw invalid_argument("stod: no conversion"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS if (idx) *idx = static_cast<size_t>(ptr - p); return r; @@ -357,7 +357,7 @@ stold(const string& str, size_t* idx) throw out_of_range("stold: out of range"); if (ptr == p) throw invalid_argument("stold: no conversion"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS if (idx) *idx = static_cast<size_t>(ptr - p); return r; @@ -377,7 +377,7 @@ stold(const wstring& str, size_t* idx) throw out_of_range("stold: out of range"); if (ptr == p) throw invalid_argument("stold: no conversion"); -#endif +#endif // _LIBCPP_NO_EXCEPTIONS if (idx) *idx = static_cast<size_t>(ptr - p); return r; |