Home » Community » Newbie corner » From std::string to String
Re: From std::string to String [message #49469 is a reply to message #49468] |
Thu, 15 February 2018 15:55 |
omari
Messages: 266 Registered: March 2010
|
Experienced Member |
|
|
1 - LoadFile is a function that open a stream and read its content and close it, returning the content.
std::ifstream is a class, the Upp similare is Upp::FileIn, that is used by LoadFile
2 -
Quote:
(MyApp.h)
Upp::Vector<Upp::String> SanitizeData(Upp::Vector<Upp::String> fields);
you have to pass "fields" by reference :
Upp::Vector<Upp::String> SanitizeData(Upp::Vector<Upp::String>& fields);
and if it is readonly, it is recommended to use "const"
Upp::Vector<Upp::String> SanitizeData(const Upp::Vector<Upp::String>& fields);
regards
omari.
|
|
|
Goto Forum:
Current Time: Tue May 07 08:58:42 CEST 2024
Total time taken to generate the page: 0.02845 seconds
|