]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_tokeniser.c
Interpret % after numeric string.
[mlt] / src / framework / mlt_tokeniser.c
index 9d3977e7050e0c594bcfc29a8c99087b0e52110f..3db3e2b7ac44f945fe460eeb99b369f61368b5a1 100644 (file)
@@ -1,8 +1,9 @@
 /**
  * \file mlt_tokeniser.c
  * \brief string tokeniser
+ * \see mlt_tokeniser_s
  *
- * Copyright (C) 2002-2008 Ushodaya Enterprises Limited
+ * Copyright (C) 2002-2009 Ushodaya Enterprises Limited
  * \author Charles Yates <charles.yates@pandora.be>
  *
  * This library is free software; you can redistribute it and/or
@@ -76,7 +77,7 @@ static int mlt_tokeniser_append( mlt_tokeniser tokeniser, char *token )
 /** Parse a string by splitting on the delimiter provided.
 */
 
-int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, char *delimiter )
+int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, const char *delimiter )
 {
        int count = 0;
        int length = strlen( string );
@@ -118,7 +119,7 @@ int mlt_tokeniser_parse_new( mlt_tokeniser tokeniser, char *string, char *delimi
                }
                else
                {
-                       index += strlen( delimiter );
+                       index += delimiter_size;
                }
        }