Re: [AD] al_path_set_extension |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On February 13, 2009, Trent Gamblin wrote:
> On Fri, February 13, 2009 6:00 pm, Peter Wang said:
> > One way to resolve this is to define an extension to include the dot as
> > well. Then:
> >
> > al_path_set_extension("abc", ".ext") ==> "abc.ext"
> > al_path_set_extension("abc.ext", ".def") ==> "abc.def"
> > al_path_set_extension("abc.def", "") ==> "abc"
> >
> > Then al_path_set_extension could be used to remove the extension. Also
> > the first call doesn't magically grow a dot character out of nowhere.
> > al_path_get_extension would return the leading dot.
> >
> > What do you think?
>
> Better than the current behaviour.
So long as it makes sense, I don't much care.
> Trent :{)>
>
> ---------------------------------------------------------------------------
>--- Open Source Business Conference (OSBC), March 24-25, 2009, San
> Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing
> the Enterprise -Strategies to boost innovation and cut costs with open
> source participation -Receive a $600 discount off the registration fee with
> the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx