Commit 0bbe149c authored by Matthias Klumpp's avatar Matthias Klumpp

Mark a few methods as pure

parent 218fd644
......@@ -1150,7 +1150,7 @@ code: start
* Convert C-style 0 terminated string s to char[] string.
* copied from phobos
*/
public static string toString(const(char)* s, size_t len = 0)
public static string toString(const(char)* s, size_t len = 0) pure
{
if ( s is null )
return cast(string)null;
......@@ -1165,7 +1165,7 @@ code: start
* Convert array of chars s[] to a C-style 0 terminated string.
* copied from phobos
*/
public static char* toStringz(string s)
public static char* toStringz(string s) pure
{
if ( s is null ) return null;
char[] copy;
......@@ -1186,7 +1186,7 @@ code: start
}
/** */
public static char** toStringzArray(string[] args)
public static char** toStringzArray(string[] args) pure
{
if ( args is null )
{
......@@ -1204,7 +1204,7 @@ code: start
}
/** */
public static char*** toStringzArray(string[][] args)
public static char*** toStringzArray(string[][] args) pure
{
if ( args is null )
{
......@@ -1222,7 +1222,7 @@ code: start
}
/** */
public static string[] toStringArray(const(char*)* args)
public static string[] toStringArray(const(char*)* args) pure
{
if ( args is null )
{
......@@ -1240,7 +1240,7 @@ code: start
}
/** */
public static string[] toStringArray(const(char*)* args, size_t len)
public static string[] toStringArray(const(char*)* args, size_t len) pure
{
string[] argv = new string[len];
......@@ -1253,7 +1253,7 @@ code: start
}
/** */
public static string[][] toStringArray(char*** args)
public static string[][] toStringArray(char*** args) pure
{
string[][] argv;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment