indent and decls
This commit is contained in:
@@ -26,8 +26,10 @@
|
||||
#include "log.h"
|
||||
#include "utf8iter.h"
|
||||
|
||||
bool unacmaybefold(const string &in, string &out,
|
||||
const char *encoding, UnacOp what)
|
||||
using namespace std;
|
||||
|
||||
bool unacmaybefold(const string &in, string &out,
|
||||
const char *encoding, UnacOp what)
|
||||
{
|
||||
char *cout = 0;
|
||||
size_t out_len;
|
||||
|
||||
+4
-8
@@ -19,22 +19,18 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifndef NO_NAMESPACES
|
||||
using std::string;
|
||||
#endif /* NO_NAMESPACES */
|
||||
|
||||
// A small stringified wrapper for unac.c
|
||||
enum UnacOp {UNACOP_UNAC = 1, UNACOP_FOLD = 2, UNACOP_UNACFOLD = 3};
|
||||
extern bool unacmaybefold(const string& in, string& out,
|
||||
extern bool unacmaybefold(const std::string& in, std::string& out,
|
||||
const char *encoding, UnacOp what);
|
||||
|
||||
// Utility function to determine if string begins with capital
|
||||
extern bool unaciscapital(const string& in);
|
||||
extern bool unaciscapital(const std::string& in);
|
||||
// Utility function to determine if string has upper-case anywhere
|
||||
extern bool unachasuppercase(const string& in);
|
||||
extern bool unachasuppercase(const std::string& in);
|
||||
// Utility function to determine if any character is accented. This
|
||||
// approprialey ignores the characters from unac_except_chars which
|
||||
// are really separate letters
|
||||
extern bool unachasaccents(const string& in);
|
||||
extern bool unachasaccents(const std::string& in);
|
||||
|
||||
#endif /* _UNACPP_H_INCLUDED_ */
|
||||
|
||||
Reference in New Issue
Block a user