mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10638 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -97,6 +97,16 @@ static inline std::string ftostr(double V) {
|
|||||||
return Buffer;
|
return Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// getToken - This function extracts one token from source, ignoring any
|
||||||
|
/// leading characters that appear in the Delimiters string, and ending the
|
||||||
|
/// token at any of the characters that appear in the Delimiters string. If
|
||||||
|
/// there are no tokens in the source string, an empty string is returned.
|
||||||
|
/// The Source source string is updated in place to remove the returned string
|
||||||
|
/// and any delimiter prefix from it.
|
||||||
|
std::string getToken(std::string &Source,
|
||||||
|
const char *Delimiters = " \t\n\v\f\r");
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -97,6 +97,16 @@ static inline std::string ftostr(double V) {
|
|||||||
return Buffer;
|
return Buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// getToken - This function extracts one token from source, ignoring any
|
||||||
|
/// leading characters that appear in the Delimiters string, and ending the
|
||||||
|
/// token at any of the characters that appear in the Delimiters string. If
|
||||||
|
/// there are no tokens in the source string, an empty string is returned.
|
||||||
|
/// The Source source string is updated in place to remove the returned string
|
||||||
|
/// and any delimiter prefix from it.
|
||||||
|
std::string getToken(std::string &Source,
|
||||||
|
const char *Delimiters = " \t\n\v\f\r");
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user