83 wcstombs ( txt, wtxt,
sizeof(txt) );
156 if (txt==NULL) txt =
"";
164 while( txt[fin]!=
'\0')
172 finaltxt =
new char[pos+(fin-com+1)+1];
178 finaltxt[i] = text[i];
183 while( i<=fin && txt[i]!=
'\0')
185 finaltxt[pos+i-com] = txt[i];
188 finaltxt[pos+i-com] =
'\0';
210 while( txt[fin]!=
'\0')
218 finaltxt =
new char[pos+(fin-com+1)+1];
224 finaltxt[i] = text[i];
229 while( i<=fin && txt[i]!=
'\0')
231 finaltxt[pos+i-com] =(char)txt[i];
234 finaltxt[pos+i-com] =
'\0';
256 while( text[i1]!=
'\0' && txt[i2]!=
'\0')
258 if(text[i1] < txt[i2])
261 if(text[i1] > txt[i2])
270 if(text[i1] ==
'\0' && txt[i2] !=
'\0')
273 if(text[i1] !=
'\0' && txt[i2] ==
'\0')
305 while( cjto[j] !=
'\0')
307 if(text[i] == cjto[j])
321 while( cjto[j] !=
'\0')
323 if(text[i] == cjto[j])
349 txtcopy( txt.text, 0, 0, txt.length);
464 unsigned short *txtshort;
467 txtshort =
new unsigned short [length+1];
471 txtshort[i] =(char)text[i];
474 txtshort[length] =
'\0';
495 txtcopy( text, 0, com, com+cant-1);
532 if ( (pos1+1) < pos2 ) newtxt.
txtcopy( text, 0, pos1, pos2-1);
549 }
else if ( text[pos1] ==
'\"') {
550 if ( (pos1+1) < length ) {
552 }
else pos2 = pos1+1;
561 if ( (pos1+1) < pos2 ) newtxt.
txtcopy( text, 0, pos1, pos2-1);
573 if ( (pos1+1) < pos2 ) newtxt.
txtcopy( text, 0, pos1, pos2-1);
615 for( i=0; i<length; i++)
616 if(text[i] >=
'a' && text[i] <=
'z')
617 text[i] = text[i] -(
'a'-
'A');
621 pos = interchar1.txtfind(tmp);
623 text[i] = interchar2[pos];
636 for( i=0; i<length; i++)
637 if(text[i] >=
'A' && text[i] <=
'Z')
638 text[i] = text[i] +(
'a'-
'A');
642 pos = interchar2.txtfind(tmp);
644 text[i] = interchar1[pos];
663 Ltext = Rtext.
Scan(separator);
665 while ( Ltext.
Length() > 0 ) {
670 Ltext = Rtext.
Scan(separator);
688 while( mRight.
Length()>0 ) {
694 for(j =0; j<(int)target.
Length(); j++ ) {
696 if ( target.text[j] == mRight.text[i+j] ) {
698 if ((j+1)==(int)target.
Length()) {
731 while( mRight.
Length()>0 ) {
737 for(j =0; j<(int)target.
Length(); j++ ) {
739 if ( target.text[j] == mRight.text[i+j] ) {
741 if ((j+1)==(int)target.
Length()) {
755 mLeft.
Left(toreplace);
758 newone+= replacement;
771 moText tt = (
char*)target;
772 moText tr = (
char*)replacement;
774 for(
int i=0; i<(int)
Length(); i++) {
777 text[i] = replacement[0];
959 if(array!=NULL)
delete[] array;
966 if ( n>=1 && (n-1-count)>=0 ) {array[n-1-count] = T;}
975 if(n>=1) {ret = array[n-1];}
976 if(n>=2) {
for(i=(n-1);i>0;i--) array[i] = array[i-1];}
977 if (count>0) count--;
989 else printf(
"moTextHeap:: Error");
995 if(x<n) { array[x] = T; }
996 else printf(
"moTextHeap:: Error");
1010 snprintf(buffer, 100,
"%i", a);
1020 snprintf(buffer, 100,
"%02d", a);
1029 snprintf(buffer, 100,
"%i", a);
1038 snprintf(buffer, 100,
"%ld", a);
1047 snprintf(buffer, 100,
"%lu", a);
1056 snprintf(buffer, 100,
"%lld", a);
1065 snprintf(buffer, 100,
"%llu", a);
1074 snprintf(buffer, 100,
"%f", a);
1086 buffer =
new char[100];
1088 snprintf(buffer, n,
"%f", a);
1102 buffer =
new char[100];
1107 snprintf(buffer, 100,
"%02.3f", a);
int operator<(const moText0 &txt) const
moTextArray Explode(char *separator) const
moText0 & Insert(char *, MOuint)
LIBMOLDEO_API moText0 FloatToStr(double a)
moText0 & operator=(const moText0 &txt)
void Replace(const moText0 &target, const moText0 &replacement)
moText0 & operator+=(const moText0 &txt)
moText0 & Delete(MOuint, MOuint)
void ReplaceChar(const char *target, const char *replacement)
clase de para manejar textos
void Set(int p_position, const moText &p_text)
moDefineDynamicArray(moTextArray) moText0
moText0 & Mid(MOuint, MOuint)
LIBMOLDEO_API moText0 operator+(const moText0 &txt1, const moText0 &txt2)
const moText & Get(int x) const
int operator==(const moText0 &txt) const
int operator!=(const moText0 &txt) const
void Push(const moText &p_text)
int operator>=(const moText0 &txt) const
void txtcopy(const char *txt, MOuint pos=0, MOuint com=0, MOuint fin=MO_TXT_COMPLETE)
LIBMOLDEO_API moText0 IntToStr(int a)
int operator<=(const moText0 &txt) const
int operator>(const moText0 &txt) const
int Find(const moText0 &target)
divide el texto separado por el caracter especificado
moText0 & SubText(MOuint, MOuint)