Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
omari is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Filtering CR from an EditString
Next Topic: MSSQL and codepage
Goto Forum:
  


Current Time: Tue May 07 08:58:42 CEST 2024

Total time taken to generate the page: 0.02845 seconds