Re: g_build_filename and members



Le dimanche 06 janvier 2008 à 22:14 +0000, Emmanuele Bassi a écrit :
> On Sun, 2008-01-06 at 21:43 +0100, Mikael Hermansson wrote:
> > Hmm just saw that g_build_filename does not work for GIO Uris
> 
> as the name implies, and the documentation specifies, g_build_filename()
> is meant for filenames, not URIs.
> 
> > maybe there should be an g_build_uri? or similar?
> 
> different schemes might have different specifications, without even
> counting the non-standard or custom ones; creating a generic API might
> prove more difficult than it's worth. for instance: the ftp: and http:
> schemes allow information like username, password and even connection
> port: that would be quite difficult to define in a single API call.

IIRC, all URI have a normal form:

[scheme] :// [pass] : [user] @ host / [path]




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]