Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Convert

 

Code snippets to convert a certain data type to another one.

 

Check code snippets check if (these) conversion can be succesfull.

 

  1. boost::lexical_cast, convert std::string to any data type
  2. boost::lexical_cast, convert std::string to double
  3. boost::lexical_cast, convert std::string to integer
  4. CliToInt, convert cln::cl_I to integer
  5. CliToStr, convert cln::cl_I to std::string
  6. ContainerToStr, convert a container to a std::string
  7. Convert AnsiString to double
  8. Convert AnsiString to integer
  9. Convert AnsiString to lower case
  10. Convert AnsiString to std::string
  11. Convert AnsiString to upper case
  12. Convert AnsiString to WideString
  13. Convert cln::cl_I to integer, CliToInt
  14. Convert cln::cl_I to std::string, CliToStr
  15. Convert container to a std::string, ContainerToStr
  16. Convert double to AnsiString
  17. Convert double to std::string
  18. Convert Gray code to int, GrayToInt
  19. Convert int to a std::string of zeroes and ones, IntToBitString
  20. Convert integer to AnsiString, IntToAnsi
  21. Convert integer to cln::cl_I, SafeIntToCli
  22. Convert int to Gray code, IntToGray
  23. Convert integer to QString, IntToQtStr
  24. Convert integer to std::string, IntToStr
  25. Convert integer to std::string with adding thousands seperators, IntToStrWithSep
  26. Convert integer to Wt::WString, IntToWString
  27. Convert Matrix<X> to Matrix<Y>, ConvertMatrix
  28. Convert QString to int, QtStrToInt
  29. Convert RGB values to TColor
  30. Convert std::string to AnsiString
  31. Convert std::string to any data type, boost::lexical_cast
  32. Convert std::string to any data type, LexicalCast
  33. Convert std::string to double, boost::lexical_cast
  34. Convert std::string to double, LexicalCast
  35. Convert std::string to double, ToDouble
  36. Convert std::string to integer, boost::lexical_cast
  37. Convert std::string to integer, LexicalCast
  38. Convert std::string to integer, ToInt
  39. Convert std::string to lower case
  40. Convert std::string to upper case
  41. Convert std::vector<X> to std::vector<Y>, ConvertVector
  42. Convert std::string to WideString
  43. Convert std::string to Wt::WString, StrToWStr
  44. Convert std::time_t to std::string
  45. Convert std::vector<std::vector<X> > to std::vector<std::vector<Y> >, ConvertMatrix
  46. Convert TColor to RGB values
  47. Convert TImage to TStringList (ASCII art)
  48. Convert two 2D std::vector<X> to 2D std::vector<Y>, ConvertMatrix
  49. Convert WideString to AnsiString
  50. Convert WideString to double
  51. Convert WideString to integer
  52. Convert WideString to std::string
  53. Convert Wt::WString to int, WStringToInt
  54. Convert Wt::WString to std::string, WStrToStr
  55. ConvertMatrix, convert Matrix<X> to Matrix<Y>
  56. ConvertMatrix, convert std::vector<std::vector<X> > to std::vector<std::vector<Y> >
  57. ConvertMatrix, convert two 2D std::vector<X> to 2D std::vector<Y>
  58. ConvertVector, convert std::vector<X> to std::vector<Y>
  59. GrayToInt, convert Gray code to int
  60. IntToBitString, convert int to a std::string of zeroes and ones
  61. IntToGray, convert int to Gray code
  62. IntToQtStr, convert integer to QString
  63. IntToStr, convert integer to std::string
  64. IntToStrWithSep: convert int to std::string with adding thousands seperators
  65. IntToWString, convert integer to Wt::WString
  66. lexical_cast, boost::lexical_cast, convert std::string to any data type
  67. lexical_cast, boost::lexical_cast, convert std::string to double
  68. lexical_cast, boost::lexical_cast, convert std::string to integer
  69. LexicalCast, convert std::string to any data type
  70. LexicalCast, convert std::string to double
  71. LexicalCast, convert std::string to integer
  72. QtStrToInt, convert QString to int
  73. SafeIntToCli, convert int to cln::cl_I
  74. StrToWStr, convert std::string to Wt::WString
  75. ToDouble, convert std::string to double
  76. ToInt, convert std::string to integer
  77. WStringToInt, convert Wt::WString to int
  78. WStrToStr, convert Wt::WString to std::string

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict