utilities.h
来自「Full support for extended regular expres」· C头文件 代码 · 共 31 行
H
31 行
#ifndef __DOLPHIN__UTILITIES_H
#define __DOLPHIN__UTILITIES_H
#include <string.h>
#include <string>
#include <iostream>
#include <functional>
class NullTerminatedStringCompare : std::binary_function<char *, char *, bool>
{
public:
bool operator ()(const char *s1, const char *s2) const
{
return strcmp(s1, s2)<0;
}
};
std::string roman_itoa(int n, bool use_capital_letters);
std::string strip_dot(const std::string &s);
// style=1: "IDENTIFIER", style=2: "Identifier".
std::string convert_file_name_to_identifier(const std::string &s, int style);
const char *printable_increment(int x);
void print_dot_message(const char *file_name, std::ostream &os);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?