/third_party/boost/libs/convert/test/ |
D | stream_converter.cpp | 25 namespace cnv = boost::cnv; 26 namespace arg = boost::cnv::parameter; 33 boost::cnv::cstream cnv; in test_dbl_to_str() local 35 cnv(std::fixed); in test_dbl_to_str() 37 BOOST_TEST(convert<string>( 99.999, cnv(arg::precision = 2)).value_or("bad") == "100.00"); in test_dbl_to_str() 38 BOOST_TEST(convert<string>( 99.949, cnv(arg::precision = 2)).value_or("bad") == "99.95"); in test_dbl_to_str() 39 BOOST_TEST(convert<string>(-99.949, cnv(arg::precision = 2)).value_or("bad") == "-99.95"); in test_dbl_to_str() 40 BOOST_TEST(convert<string>( 99.949, cnv(arg::precision = 1)).value_or("bad") == "99.9"); in test_dbl_to_str() 41 BOOST_TEST(convert<string>( 0.999, cnv(arg::precision = 2)).value_or("bad") == "1.00"); in test_dbl_to_str() 42 BOOST_TEST(convert<string>( -0.999, cnv(arg::precision = 2)).value_or("bad") == "-1.00"); in test_dbl_to_str() [all …]
|
D | strtol_converter.cpp | 30 struct boost::cnv::by_default : boost::cnv::strtol {}; 165 namespace cnv = boost::cnv; 166 namespace arg = boost::cnv::parameter; 173 boost::cnv::strtol cnv; in test_width() local 175 string s01 = convert<string>( 12, cnv(arg::width = 4)).value(); in test_width() 176 string s02 = convert<string>( 12, cnv(arg::width = 5) in test_width() 178 string s03 = convert<string>( 12, cnv(arg::width = 5) in test_width() 180 (arg::adjust = cnv::adjust::left)).value(); in test_width() 181 string s04 = convert<string>(-98, cnv(arg::width = 6) in test_width() 183 (arg::adjust = cnv::adjust::right)).value(); in test_width() [all …]
|
D | str_to_int.cpp | 24 int_to_str(Converter const& cnv) in int_to_str() argument 36 string s01 = boost::convert< string>(-1, cnv).value_or(std_str); in int_to_str() 37 string s02 = boost::convert< string>(-2, cnv).value_or(c_str); in int_to_str() 38 string s05 = boost::convert< string>(-5, cnv).value_or(array_str); in int_to_str() 39 boost::optional< string> rs01 = boost::convert< string>(-1, cnv); in int_to_str() 40 boost::optional< string> rs02 = boost::convert< string>(-2, cnv); in int_to_str() 41 boost::optional< string> rs05 = boost::convert< string>(-5, cnv); in int_to_str() 47 string s11 = boost::convert< string>(-1, cnv).value(); in int_to_str() 48 boost::optional< string> rs11 = boost::convert< string>(-1, cnv); in int_to_str() 56 str_to_int(Converter const& cnv) in str_to_int() argument [all …]
|
D | performance.cpp | 30 namespace cnv = boost::cnv; 31 namespace arg = boost::cnv::parameter; 146 raw_str_to(Converter const& cnv) in raw_str_to() argument 154 local::sum += cnv(strings[k].c_str()); in raw_str_to() 231 performance_comparative(Raw const& raw, Cnv const& cnv, char const* txt) in performance_comparative() argument 237 for (int k = 0; k < num_tries; ++k) cnv_time += local::str_to<int>(cnv); in performance_comparative() 254 local::str_to<int>(boost::cnv::spirit()), in main() 255 local::str_to<int>(boost::cnv::strtol()), in main() 256 local::str_to<int>(boost::cnv::lexical_cast()), in main() 257 local::str_to<int>(boost::cnv::printf()), in main() [all …]
|
D | is_converter.cpp | 61 BOOST_TEST( (boost::cnv::is_cnv<local::converter01, int, string>::value)); in main() 62 BOOST_TEST( (boost::cnv::is_cnv<local::converter01, double, string>::value)); in main() 63 BOOST_TEST( (boost::cnv::is_cnv<local::converter01, short int, string>::value)); in main() 64 BOOST_TEST( (boost::cnv::is_cnv<local::converter11, int, string>::value)); in main() 65 BOOST_TEST( (boost::cnv::is_cnv<local::converter11, double, string>::value)); in main() 66 BOOST_TEST( (boost::cnv::is_cnv<local::converter11, string, int>::value)); in main() 67 BOOST_TEST( (boost::cnv::is_cnv<local::converter12, int, string>::value)); in main() 68 BOOST_TEST( (boost::cnv::is_cnv<local::converter12, double, string>::value)); in main() 69 BOOST_TEST( (boost::cnv::is_cnv<local::converter12, string, int>::value)); in main() 70 BOOST_TEST( (boost::cnv::is_cnv<local::converter13, int, string>::value)); in main() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | ucnv_u16.cpp | 54 UConverter *cnv; in _UTF16BEFromUnicodeWithOffsets() local 70 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets() 73 if(cnv->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in _UTF16BEFromUnicodeWithOffsets() 75 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 80 cnv->fromUnicodeStatus=0; in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 112 cnv->fromUChar32=c=0; in _UTF16BEFromUnicodeWithOffsets() 232 cnv->fromUChar32=c; in _UTF16BEFromUnicodeWithOffsets() 237 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 258 UConverter *cnv; in _UTF16BEToUnicodeWithOffsets() local [all …]
|
D | ucnv.cpp | 158 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) in ucnv_safeClone() argument 192 if (cnv == NULL) { in ucnv_safeClone() 199 ucnv_getName(cnv, status), cnv, stackBuffer); in ucnv_safeClone() 201 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 204 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); in ucnv_safeClone() 268 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); in ucnv_safeClone() 272 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_safeClone() 281 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 285 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 287 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone() [all …]
|
D | ucnv_ext.cpp | 237 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteToU() argument 246 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU() 253 cnv, in ucnv_extWriteToU() 271 #define UCNV_SISO_STATE(cnv) \ argument 272 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \ 273 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1) 279 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument 290 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU() 291 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU() 294 cnv->useFallback, flush); in ucnv_extInitialMatchToU() [all …]
|
D | ucnv_u8.cpp | 56 static UBool hasCESU8Data(const UConverter *cnv) in hasCESU8Data() argument 61 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data() 68 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local 73 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8() 74 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8() 79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 82 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 83 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 85 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | ucnv_u16.cpp | 54 UConverter *cnv; in _UTF16BEFromUnicodeWithOffsets() local 70 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets() 73 if(cnv->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in _UTF16BEFromUnicodeWithOffsets() 75 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 80 cnv->fromUnicodeStatus=0; in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 112 cnv->fromUChar32=c=0; in _UTF16BEFromUnicodeWithOffsets() 232 cnv->fromUChar32=c; in _UTF16BEFromUnicodeWithOffsets() 237 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 258 UConverter *cnv; in _UTF16BEToUnicodeWithOffsets() local [all …]
|
D | ucnv.cpp | 156 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) in ucnv_safeClone() argument 191 if (cnv == NULL) { in ucnv_safeClone() 198 ucnv_getName(cnv, status), cnv, stackBuffer); in ucnv_safeClone() 200 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 203 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); in ucnv_safeClone() 268 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); in ucnv_safeClone() 272 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_safeClone() 281 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 285 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 287 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone() [all …]
|
D | ucnv_ext.cpp | 237 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteToU() argument 246 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU() 253 cnv, in ucnv_extWriteToU() 271 #define UCNV_SISO_STATE(cnv) \ argument 272 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \ 273 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1) 279 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument 290 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU() 291 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU() 294 cnv->useFallback, flush); in ucnv_extInitialMatchToU() [all …]
|
D | ucnv_u8.cpp | 56 static UBool hasCESU8Data(const UConverter *cnv) in hasCESU8Data() argument 61 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data() 68 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local 73 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8() 74 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8() 79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 82 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 83 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 85 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8() [all …]
|
/third_party/icu/icu4c/source/common/ |
D | ucnv_u16.cpp | 54 UConverter *cnv; in _UTF16BEFromUnicodeWithOffsets() local 70 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets() 73 if(cnv->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in _UTF16BEFromUnicodeWithOffsets() 75 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 80 cnv->fromUnicodeStatus=0; in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 112 cnv->fromUChar32=c=0; in _UTF16BEFromUnicodeWithOffsets() 232 cnv->fromUChar32=c; in _UTF16BEFromUnicodeWithOffsets() 237 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 258 UConverter *cnv; in _UTF16BEToUnicodeWithOffsets() local [all …]
|
D | ucnv.cpp | 158 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) in ucnv_safeClone() argument 192 if (cnv == NULL) { in ucnv_safeClone() 199 ucnv_getName(cnv, status), cnv, stackBuffer); in ucnv_safeClone() 201 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 204 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); in ucnv_safeClone() 268 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); in ucnv_safeClone() 272 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_safeClone() 281 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 285 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 287 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone() [all …]
|
D | ucnv_ext.cpp | 237 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteToU() argument 246 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU() 253 cnv, in ucnv_extWriteToU() 271 #define UCNV_SISO_STATE(cnv) \ argument 272 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \ 273 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1) 279 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument 290 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU() 291 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU() 294 cnv->useFallback, flush); in ucnv_extInitialMatchToU() [all …]
|
D | ucnv_u8.cpp | 56 static UBool hasCESU8Data(const UConverter *cnv) in hasCESU8Data() argument 61 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data() 68 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local 73 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8() 74 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8() 79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 82 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 83 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 85 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | ucnv_u16.cpp | 54 UConverter *cnv; in _UTF16BEFromUnicodeWithOffsets() local 70 cnv=pArgs->converter; in _UTF16BEFromUnicodeWithOffsets() 73 if(cnv->fromUnicodeStatus==UCNV_NEED_TO_WRITE_BOM) { in _UTF16BEFromUnicodeWithOffsets() 75 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 80 cnv->fromUnicodeStatus=0; in _UTF16BEFromUnicodeWithOffsets() 95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets() 112 cnv->fromUChar32=c=0; in _UTF16BEFromUnicodeWithOffsets() 232 cnv->fromUChar32=c; in _UTF16BEFromUnicodeWithOffsets() 237 ucnv_fromUWriteBytes(cnv, in _UTF16BEFromUnicodeWithOffsets() 258 UConverter *cnv; in _UTF16BEToUnicodeWithOffsets() local [all …]
|
D | ucnv.cpp | 158 ucnv_safeClone(const UConverter* cnv, void *stackBuffer, int32_t *pBufferSize, UErrorCode *status) in ucnv_safeClone() argument 192 if (cnv == NULL) { in ucnv_safeClone() 199 ucnv_getName(cnv, status), cnv, stackBuffer); in ucnv_safeClone() 201 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 204 cnv->sharedData->impl->safeClone(cnv, NULL, &bufferSizeNeeded, status); in ucnv_safeClone() 268 uprv_memcpy(localConverter, cnv, sizeof(UConverter)); in ucnv_safeClone() 272 if (cnv->subChars == (uint8_t *)cnv->subUChars) { in ucnv_safeClone() 281 … uprv_memcpy(localConverter->subChars, cnv->subChars, UCNV_ERROR_BUFFER_LENGTH * U_SIZEOF_UCHAR); in ucnv_safeClone() 285 if (cnv->sharedData->impl->safeClone != NULL) { in ucnv_safeClone() 287 localConverter = cnv->sharedData->impl->safeClone(cnv, localConverter, pBufferSize, status); in ucnv_safeClone() [all …]
|
D | ucnv_ext.cpp | 237 ucnv_extWriteToU(UConverter *cnv, const int32_t *cx, in ucnv_extWriteToU() argument 246 cnv, UCNV_EXT_TO_U_GET_CODE_POINT(value), in ucnv_extWriteToU() 253 cnv, in ucnv_extWriteToU() 271 #define UCNV_SISO_STATE(cnv) \ argument 272 ((cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_2_SISO ? (int8_t)(cnv)->mode : \ 273 (cnv)->sharedData->mbcs.outputType==MBCS_OUTPUT_DBCS_ONLY ? 1 : -1) 279 ucnv_extInitialMatchToU(UConverter *cnv, const int32_t *cx, in ucnv_extInitialMatchToU() argument 290 match=ucnv_extMatchToU(cx, (int8_t)UCNV_SISO_STATE(cnv), in ucnv_extInitialMatchToU() 291 (const char *)cnv->toUBytes, firstLength, in ucnv_extInitialMatchToU() 294 cnv->useFallback, flush); in ucnv_extInitialMatchToU() [all …]
|
D | ucnv_u8.cpp | 56 static UBool hasCESU8Data(const UConverter *cnv) in hasCESU8Data() argument 61 return (UBool)(cnv->sharedData == &_CESU8Data); in hasCESU8Data() 68 UConverter *cnv = args->converter; in ucnv_toUnicode_UTF8() local 73 unsigned char *toUBytes = cnv->toUBytes; in ucnv_toUnicode_UTF8() 74 UBool isCESU8 = hasCESU8Data(cnv); in ucnv_toUnicode_UTF8() 79 if (cnv->toULength > 0 && myTarget < targetLimit) in ucnv_toUnicode_UTF8() 81 inBytes = cnv->mode; /* restore # of bytes to consume */ in ucnv_toUnicode_UTF8() 82 i = cnv->toULength; /* restore # of bytes consumed */ in ucnv_toUnicode_UTF8() 83 cnv->toULength = 0; in ucnv_toUnicode_UTF8() 85 ch = cnv->toUnicodeStatus;/*Stores the previously calculated ch from a previous call*/ in ucnv_toUnicode_UTF8() [all …]
|
/third_party/boost/libs/convert/example/ |
D | getting_serious.cpp | 24 struct boost::cnv::by_default : boost::cnv::cstream {}; 30 boost::cnv::cstream cnv; in example1() local 39 int i2 = convert<int>("not an int", cnv).value_or(-1); // after the call i2==-1 in example1() 49 int i2 = convert<int>(str, cnv).value(); // Throws if the conversion fails. in example1() 59 optional<int> r1 = convert<int>(str1, cnv); // Does not throw on conversion failure. in example1() 60 optional<int> r2 = convert<int>(str2, cnv); // Does not throw on conversion failure. in example1() 75 int i3 = convert<int>(str3, cnv).value_or(fallback_value); in example1() 76 int i4 = convert<int>(str3, cnv).value_or_eval(fallback_function); in example1() 92 boost::cnv::cstream cnv; in example4() local 96 boost::optional<int> res = boost::convert<int>(str, cnv); in example4() [all …]
|
D | getting_started.cpp | 43 struct boost::cnv::by_default : boost::cnv::lexical_cast {}; 53 boost::cnv::lexical_cast cnv; // boost::lexical_cast-based converter in getting_started_example1() local 57 int i3 = convert<int>("123", cnv).value(); // boost::convert with an explicit converter in getting_started_example1() 60 string s3 = convert<string>(123, cnv).value(); // boost::convert with an explicit converter in getting_started_example1() 85 int i = convert<int>("uhm", boost::cnv::lexical_cast()).value_or(-1); in getting_started_example2() 101 boost::cnv::lexical_cast cnv1; in getting_started_example3() 102 boost::cnv::strtol cnv2; in getting_started_example3() 103 boost::cnv::spirit cnv3; in getting_started_example3() 120 boost::cnv::cstream cnv; in getting_started_example4() local 129 int i2 = convert<int>(" 123", cnv(std::skipws)).value(); // Success in getting_started_example4() [all …]
|
/third_party/boost/boost/convert/ |
D | stream.hpp | 17 typename boost::enable_if<cnv::is_string<string_type>, void>::type \ 22 …operator()(boost::parameter::aux::tag<boost::cnv::parameter::type::PARAM_NAME, PARAM_TYPE const>::… 24 namespace boost { namespace cnv namespace 28 using cstream = boost::cnv::basic_stream<char>; 29 using wstream = boost::cnv::basic_stream<wchar_t>; 33 struct boost::cnv::basic_stream : boost::noncopyable 46 using this_type = boost::cnv::basic_stream<char_type>; 79 …BOOST_CNV_STRING_ENABLE(string_type const& s, optional<type>& r) const { str_to(cnv::range<string_… in BOOST_CNV_STRING_ENABLE() 81 …e> void operator()( char_type const* s, optional<type>& r) const { str_to(cnv::range< char_type c… in operator ()() 82 …e> void operator()(stdstr_type const& s, optional<type>& r) const { str_to(cnv::range<stdstr_type … in operator ()() [all …]
|
D | strtol.hpp | 24 namespace boost { namespace cnv namespace 32 struct boost::cnv::strtol : public boost::cnv::cnvbase<boost::cnv::strtol> 34 typedef boost::cnv::strtol this_type; 35 typedef boost::cnv::cnvbase<this_type> base_type; 41 friend struct boost::cnv::cnvbase<this_type>; 43 …template<typename string_type> void str_to(cnv::range<string_type> v, optional< int_type>& r) co… in str_to() 44 …template<typename string_type> void str_to(cnv::range<string_type> v, optional< sint_type>& r) co… in str_to() 45 …template<typename string_type> void str_to(cnv::range<string_type> v, optional< lint_type>& r) co… in str_to() 46 …template<typename string_type> void str_to(cnv::range<string_type> v, optional< llint_type>& r) co… in str_to() 47 …template<typename string_type> void str_to(cnv::range<string_type> v, optional< uint_type>& r) co… in str_to() [all …]
|