Browse Source

Improved const-correctness

release/0.19
JustinAJ 10 years ago
parent
commit
54a9e74686
  1. 8
      Jupiter/Reference_String.h
  2. 8
      Jupiter/Reference_String_Imp.h
  3. 8
      Jupiter/String.h
  4. 8
      Jupiter/String_Imp.h

8
Jupiter/Reference_String.h

@ -170,8 +170,8 @@ namespace Jupiter
* @param token Token to scan for.
* @return String containing a partial copy of the original string.
*/
Reference_String<T> getToken(size_t pos, const T &token);
Reference_String<T> getToken(size_t pos, const Jupiter::Readable_String<T> &token);
Reference_String<T> getToken(size_t pos, const T &token) const;
Reference_String<T> getToken(size_t pos, const Jupiter::Readable_String<T> &token) const;
/**
* @brief Creates a partial copy of an input string, based on a token.
@ -220,8 +220,8 @@ namespace Jupiter
* @param token Token to scan for.
* @return String containing a partial copy of the original string.
*/
Reference_String<T> gotoToken(size_t pos, const T &token);
Reference_String<T> gotoToken(size_t pos, const Jupiter::Readable_String<T> &token);
Reference_String<T> gotoToken(size_t pos, const T &token) const;
Reference_String<T> gotoToken(size_t pos, const Jupiter::Readable_String<T> &token) const;
/**
* @brief Creates a partial copy of the string, based on a token.

8
Jupiter/Reference_String_Imp.h

@ -176,12 +176,12 @@ template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::
return Jupiter::Readable_String<T>::getWord<Jupiter::Reference_String>(in, pos, whitespace);
}
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::getToken(size_t pos, const T &token)
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::getToken(size_t pos, const T &token) const
{
return Jupiter::Reference_String<T>::getToken(*this, pos, token);
}
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::getToken(size_t pos, const Jupiter::Readable_String<T> &token)
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::getToken(size_t pos, const Jupiter::Readable_String<T> &token) const
{
return Jupiter::Reference_String<T>::getToken(*this, pos, token);
}
@ -211,12 +211,12 @@ template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::
return Jupiter::Readable_String<T>::gotoWord<Jupiter::Reference_String>(in, pos, whitespace);
}
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::gotoToken(size_t pos, const T &token)
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::gotoToken(size_t pos, const T &token) const
{
return Jupiter::Reference_String<T>::gotoToken(*this, pos, token);
}
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::gotoToken(size_t pos, const Jupiter::Readable_String<T> &token)
template<typename T> Jupiter::Reference_String<T> Jupiter::Reference_String<T>::gotoToken(size_t pos, const Jupiter::Readable_String<T> &token) const
{
return Jupiter::Reference_String<T>::gotoToken(*this, pos, token);
}

8
Jupiter/String.h

@ -143,8 +143,8 @@ namespace Jupiter
* @param token Token to scan for.
* @return String containing a partial copy of the original string.
*/
String_Strict<T> getToken(size_t pos, const T &token);
String_Strict<T> getToken(size_t pos, const Jupiter::Readable_String<T> &token);
String_Strict<T> getToken(size_t pos, const T &token) const;
String_Strict<T> getToken(size_t pos, const Jupiter::Readable_String<T> &token) const;
/**
* @brief Creates a partial copy of an input string, based on a token.
@ -183,8 +183,8 @@ namespace Jupiter
* @param token Token to scan for.
* @return String containing a partial copy of the original string.
*/
String_Strict<T> gotoToken(size_t pos, const T &token);
String_Strict<T> gotoToken(size_t pos, const Jupiter::Readable_String<T> &token);
String_Strict<T> gotoToken(size_t pos, const T &token) const;
String_Strict<T> gotoToken(size_t pos, const Jupiter::Readable_String<T> &token) const;
/**
* @brief Creates a partial copy of the string, based on a token.

8
Jupiter/String_Imp.h

@ -216,12 +216,12 @@ template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::getWor
return Jupiter::Readable_String<T>::getWord<Jupiter::String_Strict>(in, pos, whitespace);
}
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::getToken(size_t pos, const T &token)
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::getToken(size_t pos, const T &token) const
{
return Jupiter::String_Strict<T>::getToken(*this, pos, token);
}
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::getToken(size_t pos, const Jupiter::Readable_String<T> &token)
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::getToken(size_t pos, const Jupiter::Readable_String<T> &token) const
{
return Jupiter::String_Strict<T>::getToken(*this, pos, token);
}
@ -246,12 +246,12 @@ template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::gotoWo
return Jupiter::Readable_String<T>::gotoWord<Jupiter::String_Strict>(in, pos, whitespace);
}
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::gotoToken(size_t pos, const T &token)
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::gotoToken(size_t pos, const T &token) const
{
return Jupiter::String_Strict<T>::gotoToken(*this, pos, token);
}
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::gotoToken(size_t pos, const Jupiter::Readable_String<T> &token)
template<typename T> Jupiter::String_Strict<T> Jupiter::String_Strict<T>::gotoToken(size_t pos, const Jupiter::Readable_String<T> &token) const
{
return Jupiter::String_Strict<T>::gotoToken(*this, pos, token);
}

Loading…
Cancel
Save