|
|
Home » U++ Library support » U++ Core » Explanations of some functions
Explanations of some functions [message #10730] |
Wed, 25 July 2007 21:21 |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
Can someone please provide a quick definition/explanation of any of the following functions/classes:
class Convert, ConverDate, ConvertTime
const Convert& StdConvert()
const ConvertString& StdConvertString()
String NormalizePath(const char *path)
String NormalizeSpaces(const char* s)
String Normalize Spaces(const char* begin, const char* end)
String NativePath(const char* path)
bool LoadFromXML(T &data, const String& xml)
bool LessPath(string fa, string fb)
String GetFileTitle(const char* fp)
String GetFileFolder(...
String GetFileDirectory(...
Struct FileInfo
String AsCString(const char*s, ...)
PS: Why are many of these not in documentation?
Thanks
|
|
|
|
Re: Explanations of some functions [message #10735 is a reply to message #10734] |
Thu, 26 July 2007 00:20 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
inline bool LessPath(String fa, String fb) { return ComparePath(fa, fb) < 0; }
int ComparePath(String fa, String fb) {
int la = fa.GetLength(), lb = fb.GetLength();
int r = ComparePath(fa, fb, min(la, lb));
return r ? r : cmp(la, lb);
}
if first path (fa) is shorter (count letters or symbols) than second (fb)
(not tested )
[Updated on: Thu, 26 July 2007 00:21] Report message to a moderator
|
|
|
|
Re: Explanations of some functions [message #10740 is a reply to message #10736] |
Thu, 26 July 2007 15:13 |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
Quote: |
... some - very easy to test or just jump from Assist++ to their code.
Have you already learned how to jump with Assist++ alt_ shortcuts to definitions /declarations?
|
No, I have not learned how to use Assist++ much yet; I will do some exploring.
Thanks
[Updated on: Thu, 26 July 2007 15:13] Report message to a moderator
|
|
|
Re: Explanations of some functions [message #10741 is a reply to message #10740] |
Thu, 26 July 2007 15:37 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
explore and try ALL Assist menu items (when cursor inside a word)
PLUS combine them with alt_<- (left arrow right arrow) to go back-forward from file to file positions (after using any of the above).
PLUS - don't forget Ctrl_space...
[Updated on: Thu, 26 July 2007 15:38] Report message to a moderator
|
|
|
|
|
|
|
Re: Explanations of some functions [message #10824 is a reply to message #10823] |
Tue, 31 July 2007 21:20 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
captainc wrote |
Can someone please provide a quick definition/explanation of any of the following functions/classes:
class Convert, ConverDate, ConvertTime
const Convert& StdConvert()
const ConvertString& StdConvertString()
String NormalizePath(const char *path)
String NormalizeSpaces(const char* s)
String Normalize Spaces(const char* begin, const char* end)
String NativePath(const char* path)
bool LoadFromXML(T &data, const String& xml)
bool LessPath(string fa, string fb)
String GetFileTitle(const char* fp)
String GetFileFolder(...
String GetFileDirectory(...
Struct FileInfo
String AsCString(const char*s, ...)
PS: Why are many of these not in documentation?
Thanks
|
...
captainc wrote on Tue, 31 July 2007 19:12 | Simple input validation functionality would be great. Thanks for the info, though I still am not sure how or when to use the Convert classes. What was the intention for the class in terms of how it would be used? in what cases/scenarios?
|
Great news! Your questions are improving...
captainc, I'm very sorry, but your topic starter question sounded more like: "Can someone explain modern history, architecture and how to drive a car in 1 minute or read and write a quick tutorial for me"...
(I'd gently recommend the link in my signature... )
captainc wrote |
Why are many of these not in documentation?
|
Then, which?
And... have you, actually, read the documentation? E.g
http://www.ultimatepp.org/src$Core$Convert$en-us.html
P.S And, please, narrow your questions into separate topics...
|
|
|
|
|
Re: Explanations of some functions [message #10909 is a reply to message #10828] |
Sat, 04 August 2007 04:49 |
captainc
Messages: 278 Registered: December 2006 Location: New Jersey, USA
|
Experienced Member |
|
|
6. After an initial but not in-depth search, I required alternate and further explanation.
I was looking for documentation within TheIDE's help section, but I don't think I was able to find it due to the way I was navigating the help section. For example, there is no 'clear' or 'reset' button (although now I see that you can just hit enter again) and I was not sure that I was searching the entire help or just the highlighted sections. Also, I was not sure if the button next to the search box was a toggle button (for full text search or not) or the search button to initiate the search. I need to get used to that search functionality. Long story short, I didn't find it on the first try.
I think the issue for me mostly lies in that fact that I am in a learning phase with C++ in general, and trying to go from beginner to intermediate and use C++ in a professional environment. I have not been able to even use the standard library to its fullest extent yet. There is a lot of information I am trying to soak up right now and I was looking for an easy way to get quick answers to some questions while continuing to research. I came to Upp initially not for its improvements over standard C++, but for its ability to provide easy memory management and higher level/packaged cross-platform functionality. The NTL attracted me due to its functionality especially vectors, arrays, strings, and file I/O (little and big-endian for reading from files made my life easy at one point). There are many aspects of Upp that are beginner friendly, but some that are not as well. Good forum support is essential for me here and is much appreciated, especially when you need to bounce ideas around with others in order to open up your own mind or clear a mental block.
After writing one application successfully with Upp, I want to learn the whole thing in an out and all of its functionality instead of just the basics.
|
|
|
Goto Forum:
Current Time: Mon Apr 29 08:35:52 CEST 2024
Total time taken to generate the page: 0.01649 seconds
|
|
|