Skip to content
Snippets Groups Projects
Commit 19505f02 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent fcb67be0
No related branches found
No related tags found
No related merge requests found
// $Id: StringUtils.cpp,v 1.2 2008-03-20 11:44:02 geuzaine Exp $ // $Id: StringUtils.cpp,v 1.3 2008-03-21 18:08:52 geuzaine Exp $
// //
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
// //
...@@ -35,7 +35,7 @@ void swapBytes(char *array, int size, int n) ...@@ -35,7 +35,7 @@ void swapBytes(char *array, int size, int n)
std::string extractDoubleQuotedString(const char *str, int len) std::string extractDoubleQuotedString(const char *str, int len)
{ {
char *c = strstr(str, "\""); char *c = strstr((char*)str, "\"");
if(!c) return ""; if(!c) return "";
std::string ret; std::string ret;
for(int i = 1; i < len; i++) { for(int i = 1; i < len; i++) {
...@@ -45,7 +45,6 @@ std::string extractDoubleQuotedString(const char *str, int len) ...@@ -45,7 +45,6 @@ std::string extractDoubleQuotedString(const char *str, int len)
return ret; return ret;
} }
std::string sanitizeTeXString(const char *in, int equation) std::string sanitizeTeXString(const char *in, int equation)
{ {
// if there is a '$' or a '\' in the string, assume the author knows // if there is a '$' or a '\' in the string, assume the author knows
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment