> Tommi Mäkitalo <[email protected]> hat am 21. Juni 2013 um 19:00 geschrieben:
> The next step for the new homepage is to integrate API documentation.
> And after that we have to go through the classes and see, where proper
> documentation is missing.
Now I generate the API documentation with doxygen self and I be little
bit surprised. In this generate API documentation it is to find the
function split() and join()! And I be surprised too: It is very fine
documentated!
I think namespace is a wonderful thing to give that a right ordering.
If you dont like class member we can use a namespace. For suggestion:
namspace cxxtools{
namspace string{
[...]
}
}
cxxtools::string::split()
cxxtools::string::join()
cxxtools::string::convert<>()
But, a class name is not big difference do a namspace. Ultimately a
class name is a namspace. Anyway...
> Transform is a free function. It is not a member of anything.
Yes you are right. std::transform is not a member of string or member of
this namespace. I was wrong.
> >
> > Okay, let's have a look at other frameworks. Qt is a good example. Specialy
> > the QString class: qt-project.org/doc/qt-5.0/qtcore/qstring.html
> >
> > The class is clear an intuitively to use. That's what programmers love. And
> > of
> > course, the doku is fine too!
> String handling with standard C++ is just a little different. It is not
> as people expect but different. Maybe something like a cookbook how to
> handle strings in C++ correctly may help. String handling is really not
> that bad and everything can be done. The only problem is, that the
> algorithms are not member functions of std::string and hence can't be
> found there.
We can create a proxy class to embedded this in the cxxtols/tntnet
framework. So programm can find his tool easier.
> Qt created a string class because standard C++ did not have any those
> days. std::string is newer than QString.
i think the goal of a framework is too make it easy for programmer
to do what they want. So wrapper classes is a good way to make using a
little bit more intuitive.
> >
> > Typically web programming has many string operations so the string handling
> > is very impotent, I think.
> I don't see may string operations in web programming. Can you give me
> some examples, where you really need string operations in web programming?
You have a number an like embedded this in a message sting (you need a cast).
You get a list separated by commas as a string input. In my program the user
can give a bible verse some tags. And ths tags don't like upper letters. You
can see more hier http://www.the-independent-friend.de:8008/
Best regards
Olaf
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general