Page 1 of 1

URL.Decode but not implemented in its source code

Posted: Sunday 19th July 2020 5:11pm
by yasumi2136
Hello,

in the gb.web documentation, we can see the following methods :
Decode
Encode
FromString
Quote
SetQuery
UnQuote
UnsetQuery
thoses one that appears in red before, we can find them in the URL class into the gb.web component source code.
my question is, why we can call URL.Decode if there is no method Decode into its source code ?!

Thank you

Re: URL.Decode but not implemented in its source code

Posted: Monday 20th July 2020 2:18pm
by cogier
Welcome to the forum. I'm sorry but I don't understand the question.

Re: URL.Decode but not implemented in its source code

Posted: Thursday 23rd July 2020 12:07pm
by yasumi2136
To do simple :) , juste take the source code of Gambas, and open the gb.web component in Gambas, take a look at the URL class to watch which method are available.
I wonder why this simple call :
URL.Decode
is possible.

Re: URL.Decode but not implemented in its source code

Posted: Thursday 23rd July 2020 6:38pm
by Matthew-Collins
Hi,

The decode method is in the gb.util.web url.class source code...

gb.web includes gb.util.web, see file (Include=gb.util.web):
https://gitlab.com/gambas/gambas/-/blob ... .component

gb.web:
https://gitlab.com/gambas/gambas/-/blob ... /URL.class

gb.util.web:
https://gitlab.com/gambas/gambas/-/blob ... /URL.class

I hope this helps...

Re: URL.Decode but not implemented in its source code

Posted: Friday 24th July 2020 12:36pm
by yasumi2136
Oh thank you Matthew right now i understood :) !