URL.Decode but not implemented in its source code

Post your Gambas programming questions here.
Post Reply
yasumi2136
Posts: 4
Joined: Sunday 19th July 2020 5:03pm

URL.Decode but not implemented in its source code

Post 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
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

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

Post by cogier »

Welcome to the forum. I'm sorry but I don't understand the question.
yasumi2136
Posts: 4
Joined: Sunday 19th July 2020 5:03pm

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

Post 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.
User avatar
Matthew-Collins
Posts: 12
Joined: Wednesday 21st September 2016 7:59pm
Location: Guernsey, Channel Islands

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

Post 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...
Cheers
Matt
yasumi2136
Posts: 4
Joined: Sunday 19th July 2020 5:03pm

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

Post by yasumi2136 »

Oh thank you Matthew right now i understood :) !
Post Reply