New version of fn:substring(), cleaner easier to read code with comments. fixes bug 1535920
New version of fn:substring(), cleaner easier to read code with comments.
fixes bug 1535920

svn path=/trunk/eXist-1.0/; revision=3978

wolfgangmm/exist,adamretter/exist,lcahlander/exist,jessealama/exist,jensopetersen/exist,olvidalo/exist,joewiz/exist,wshager/exist,opax/exist,shabanovd/exist,jessealama/exist,ambs/exist,adamretter/exist,ambs/exist,RemiKoutcherawy/exist,jessealama/exist,dizzzz/exist,patczar/exist,adamretter/exist,wshager/exist,wshager/exist,adamretter/exist,dizzzz/exist,patczar/exist,kohsah/exist,lcahlander/exist,ambs/exist,ljo/exist,hungerburg/exist,kohsah/exist,patczar/exist,jensopetersen/exist,ambs/exist,adamretter/exist,wshager/exist,jessealama/exist,ljo/exist,wolfgangmm/exist,windauer/exist,jensopetersen/exist,RemiKoutcherawy/exist,RemiKoutcherawy/exist,lcahlander/exist,MjAbuz/exist,jessealama/exist,wshager/exist,MjAbuz/exist,wolfgangmm/exist,zwobit/exist,olvidalo/exist,eXist-db/exist,hungerburg/exist,olvidalo/exist,shabanovd/exist,opax/exist,dizzzz/exist,lcahlander/exist,joewiz/exist,zwobit/exist,shabanovd/exist,opax/exist,eXist-db/exist,windauer/exist,kohsah/exist,olvidalo/exist,RemiKoutcherawy/exist,windauer/exist,wshager/exist,RemiKoutcherawy/exist,shabanovd/exist,dizzzz/exist,MjAbuz/exist,dizzzz/exist,wolfgangmm/exist,ljo/exist,zwobit/exist,kohsah/exist,jensopetersen/exist,MjAbuz/exist,lcahlander/exist,ambs/exist,shabanovd/exist,jessealama/exist,ljo/exist,RemiKoutcherawy/exist,hungerburg/exist,dizzzz/exist,joewiz/exist,opax/exist,eXist-db/exist,windauer/exist,ljo/exist,MjAbuz/exist,eXist-db/exist,lcahlander/exist,hungerburg/exist,MjAbuz/exist,ambs/exist,wolfgangmm/exist,joewiz/exist,patczar/exist,windauer/exist,olvidalo/exist,joewiz/exist,kohsah/exist,eXist-db/exist,opax/exist,wolfgangmm/exist,eXist-db/exist,hungerburg/exist,windauer/exist,zwobit/exist,joewiz/exist,adamretter/exist,kohsah/exist,ljo/exist,zwobit/exist,patczar/exist,jensopetersen/exist,patczar/exist,jensopetersen/exist,zwobit/exist,shabanovd/exist