Aggiunti metodi sget() per ottenere oggetti TString completi anziche'

reference.


git-svn-id: svn://10.65.10.50/trunk@2091 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
gianluca 1995-11-06 10:41:27 +00:00
parent 383d6b0feb
commit f8f3f0b241
3 changed files with 1497 additions and 1482 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -110,6 +110,15 @@ public:
// @cmember Ritorna l'oggetto TString composto dai count caratteri da destra
const TString& right(int count) const;
// @cmember Ritorna un oggetto TString temporaneo composto dai count caratteri da sinistra
TString sleft(int count) const { return ((TString)left(count)); }
// @cmember Ritorna un oggetto TString temporaneo composto dai count caratteri a partire da from
TString smid(int from, int count = -1) const { return ((TString)mid(from, count)); }
// @cmember Ritorna un oggetto TString temporaneo composto dai caratteri da from a to (escluso)
TString ssub(int from, int to = -1) const { return ((TString)sub(from, to)); }
// @cmember Ritorna un oggetto TString temporaneo composto dai count caratteri da destra
TString sright(int count) const { return ((TString)right(count)); }
// @cmember Riempe la stringa con n caratteri c
TString& fill(char c, int n = -1);
// @cmember Riempe la stringa con n caratteri spazio (chiama <mf TString::resize>)