summaryrefslogtreecommitdiff
path: root/l10ntools/inc
diff options
context:
space:
mode:
authorjan iversen <jani@documentfoundation.org>2016-03-26 20:54:55 +0100
committerjan iversen <jani@documentfoundation.org>2016-03-26 20:59:16 +0100
commit83f9151b13b0bb4ad670f9c4a9f02dbb06f233af (patch)
tree15d4317afbdf7bea31889ac4ce9c67f56fa0b444 /l10ntools/inc
parent58d863eec084029716eccab7f941727fc650415e (diff)
genlang, clenaup top of Lex files
Duplicate functions in lex files removed Top part simplified and made identical. Change-Id: I7288bfdbeba9d1ec96b5d2bc7b21dd65337cd8d7
Diffstat (limited to 'l10ntools/inc')
-rw-r--r--l10ntools/inc/gConv.hxx3
-rw-r--r--l10ntools/inc/gConvPo.hxx5
-rw-r--r--l10ntools/inc/gConvSrc.hxx3
-rw-r--r--l10ntools/inc/gL10nMem.hxx2
4 files changed, 11 insertions, 2 deletions
diff --git a/l10ntools/inc/gConv.hxx b/l10ntools/inc/gConv.hxx
index 86d84a74fdc0..d329a5ac0295 100644
--- a/l10ntools/inc/gConv.hxx
+++ b/l10ntools/inc/gConv.hxx
@@ -42,7 +42,8 @@ class convert_gen
virtual void doExecute() = 0;
// utility functions for converters
- void lexRead(char *sBuf, int *nResult, int nMax_size);
+ int lexRead(char *sBuf, int nMax_size);
+ static void lexStrncpy(char* s1, const char * s2, int n);
string& copySource(char const *yyText, bool bDoClear = true);
protected:
diff --git a/l10ntools/inc/gConvPo.hxx b/l10ntools/inc/gConvPo.hxx
index 31c037d107b5..5be3657a70bc 100644
--- a/l10ntools/inc/gConvPo.hxx
+++ b/l10ntools/inc/gConvPo.hxx
@@ -22,6 +22,10 @@
+extern int polex(void);
+
+
+
class convert_po : public convert_gen
{
public:
@@ -61,5 +65,6 @@ class convert_po : public convert_gen
filebuf outBuffer;
void doExecute() override;
+ string genKeyId(const string& text);
};
#endif
diff --git a/l10ntools/inc/gConvSrc.hxx b/l10ntools/inc/gConvSrc.hxx
index 65bd5eb6daba..4aaa8bf55b29 100644
--- a/l10ntools/inc/gConvSrc.hxx
+++ b/l10ntools/inc/gConvSrc.hxx
@@ -21,6 +21,9 @@
#include "gConv.hxx"
+extern int srclex(void);
+
+
class convert_src : public convert_gen
{
diff --git a/l10ntools/inc/gL10nMem.hxx b/l10ntools/inc/gL10nMem.hxx
index 635f4fb64702..f2c116c36150 100644
--- a/l10ntools/inc/gL10nMem.hxx
+++ b/l10ntools/inc/gL10nMem.hxx
@@ -39,7 +39,7 @@ class l10nMem
static void showWarning(const string& sText, int iLineNo = 0);
static void showDebug (const string& sText, int iLineNo = 0);
static void showVerbose(const string& sText, int iLineNo = 0);
- static void keyToUpper (string& sKey);
+ static void keyToLower (string& sKey);
void setModuleName(const string& sModuleName);
const string& getModuleName(void);