- Fixed: FString::StripRight() stripped the final character of the string if
there were no designated characters to strip at the end of it. - Added support for Shoutcast/Icecast playlists. - Added an error message when a playlist could not be opened. - Added support for PLS format playlists, in addition to M3U. - Changed FPlayList to use an array of FStrings. - Fixed: Playlists required every song to be specified by an absolute path. SVN r951 (trunk)
This commit is contained in:
parent
8040cdd4ff
commit
c86d7e0afd
12 changed files with 291 additions and 125 deletions
|
|
@ -385,7 +385,7 @@ FString FString::Mid (size_t pos, size_t numChars) const
|
|||
{
|
||||
return FString();
|
||||
}
|
||||
if (pos + numChars > len)
|
||||
if (pos + numChars > len || pos + numChars < pos)
|
||||
{
|
||||
numChars = len - pos;
|
||||
}
|
||||
|
|
@ -631,7 +631,7 @@ void FString::StripLeft (const char *charset)
|
|||
void FString::StripRight ()
|
||||
{
|
||||
size_t max = Len(), i;
|
||||
for (i = max - 1; i-- > 0; )
|
||||
for (i = max; i-- > 0; )
|
||||
{
|
||||
if (!isspace(Chars[i]))
|
||||
break;
|
||||
|
|
@ -658,7 +658,7 @@ void FString::StripRight (const FString &charset)
|
|||
void FString::StripRight (const char *charset)
|
||||
{
|
||||
size_t max = Len(), i;
|
||||
for (i = max - 1; i-- > 0; )
|
||||
for (i = max; i-- > 0; )
|
||||
{
|
||||
if (!strchr (charset, Chars[i]))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue