URL.Decode but not implemented in its source code

Post Reply
yasumi2136
Posts: 4
Joined: Sunday 19th July 2020 5:03pm

URL.Decode but not implemented in its source code

Post by yasumi2136 » Sunday 19th July 2020 5:11pm

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: 517
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

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

Post by cogier » Monday 20th July 2020 2:18pm

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 » Thursday 23rd July 2020 12:07pm

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: 7
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 » Thursday 23rd July 2020 6:38pm

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 » Friday 24th July 2020 12:36pm

Oh thank you Matthew right now i understood :) !

Post Reply