Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
76e0a9a9
Kaydet (Commit)
76e0a9a9
authored
Eyl 07, 2012
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-function
Change-Id: I6736d1295a662527e2bfd12cfbebc0ef4634b397
üst
b5afbbd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
26 deletions
+30
-26
gsicheck.hxx
l10ntools/inc/gsicheck.hxx
+0
-26
gsicheck.cxx
l10ntools/source/gsicheck.cxx
+11
-0
gsimain.cxx
l10ntools/source/gsimain.cxx
+19
-0
No files found.
l10ntools/inc/gsicheck.hxx
Dosyayı görüntüle @
76e0a9a9
...
@@ -163,34 +163,8 @@ public:
...
@@ -163,34 +163,8 @@ public:
void
LazyOpen
();
void
LazyOpen
();
};
};
namespace
{
sal_Int32
const
MAX_GID_LID_LEN
=
250
;
sal_Int32
const
MAX_GID_LID_LEN
=
250
;
rtl
::
OString
copyUpTo
(
rtl
::
OString
const
&
text
,
sal_Int32
start
,
sal_Int32
maximumLength
)
{
assert
(
start
>=
0
&&
start
<=
text
.
getLength
());
return
text
.
copy
(
start
,
std
::
min
(
text
.
getLength
()
-
start
,
maximumLength
));
}
rtl
::
OString
addSuffix
(
rtl
::
OString
const
&
pathname
,
rtl
::
OString
const
&
suffix
)
{
sal_Int32
n
=
pathname
.
lastIndexOf
(
'.'
);
if
(
n
==
-
1
)
{
fprintf
(
stderr
,
(
"Error: pathname
\"
%s
\"
does not contain dot to add suffix in"
" front of
\n
"
),
pathname
.
getStr
());
exit
(
EXIT_FAILURE
);
}
return
pathname
.
replaceAt
(
n
,
0
,
suffix
);
}
}
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
l10ntools/source/gsicheck.cxx
Dosyayı görüntüle @
76e0a9a9
...
@@ -42,6 +42,17 @@
...
@@ -42,6 +42,17 @@
#include "tagtest.hxx"
#include "tagtest.hxx"
#include "gsicheck.hxx"
#include "gsicheck.hxx"
namespace
{
rtl
::
OString
copyUpTo
(
rtl
::
OString
const
&
text
,
sal_Int32
start
,
sal_Int32
maximumLength
)
{
assert
(
start
>=
0
&&
start
<=
text
.
getLength
());
return
text
.
copy
(
start
,
std
::
min
(
text
.
getLength
()
-
start
,
maximumLength
));
}
}
/*****************************************************************************/
/*****************************************************************************/
void
PrintMessage
(
rtl
::
OString
const
&
aType
,
rtl
::
OString
const
&
aMsg
,
rtl
::
OString
const
&
aPrefix
,
void
PrintMessage
(
rtl
::
OString
const
&
aType
,
rtl
::
OString
const
&
aMsg
,
rtl
::
OString
const
&
aPrefix
,
rtl
::
OString
const
&
aContext
,
sal_Bool
bPrintContext
,
std
::
size_t
nLine
,
rtl
::
OString
aUniqueId
)
rtl
::
OString
const
&
aContext
,
sal_Bool
bPrintContext
,
std
::
size_t
nLine
,
rtl
::
OString
aUniqueId
)
...
...
l10ntools/source/gsimain.cxx
Dosyayı görüntüle @
76e0a9a9
...
@@ -42,6 +42,25 @@
...
@@ -42,6 +42,25 @@
#include "tagtest.hxx"
#include "tagtest.hxx"
#include "gsicheck.hxx"
#include "gsicheck.hxx"
namespace
{
rtl
::
OString
addSuffix
(
rtl
::
OString
const
&
pathname
,
rtl
::
OString
const
&
suffix
)
{
sal_Int32
n
=
pathname
.
lastIndexOf
(
'.'
);
if
(
n
==
-
1
)
{
fprintf
(
stderr
,
(
"Error: pathname
\"
%s
\"
does not contain dot to add suffix in"
" front of
\n
"
),
pathname
.
getStr
());
exit
(
EXIT_FAILURE
);
}
return
pathname
.
replaceAt
(
n
,
0
,
suffix
);
}
}
void
Help
()
void
Help
()
{
{
fprintf
(
stdout
,
"
\n
"
);
fprintf
(
stdout
,
"
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment