As an addition to ur knowlegde, these are some algorithms i have
written for the "String Manipulation"
* Concatenation
Function Concatenate(String 1,String 2)
lenght 1=Strlenght(String 1)
lenght 2=Strlenght(String 2)
FOR
index<= 1 To lenght 1
Newstring(index)=String 1(index)
ENDFOR
FOR
index2<=1 To length2
Newstring(Length1+index2)=String2(index2)
ENDFOR
Newstring=Concatenate
END Concatenate
* Deletion
Function Delete(Astring,Start,Finish)
length 1=Strlenght(Astring)
temp 1=Extract(Astring,1,Start-1)
temp 2=Extract(Astring,Finish+1,lenght 1)
Newstring=concatenate(temp 1,temp 2)
Return Newstring
END Deletion
* Extract
Function Extract(Astring,Start,Finish)
IF Finish is >Strlength(Astring) THEN
Return error
ENDIF
Index=1
FOR
Position=Start To Finish
Newstring (Index)=Astring (Position)
Index=Index+1
ENDFOR
Newstring=Extract
END Extract
* Insertion
Function Insert(String1,String2,Start)
Length1=Strlength(String1)
Temp1=Extract(String1,1,Start-1)
Temp2=Extract(String1,Start,Length1)
Newstring=concatenate(Temp1,String2)
Newstring=concatenate(Newstring,Temp2)
Return Newstring
END Insert