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
7933b269
Kaydet (Commit)
7933b269
authored
May 23, 2014
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reintroduce Win_GetShortPathName()
Change-Id: Id15d1d4d9b7fb9bb2a0a5f52b5ec1928c38bd27b
üst
2c66056b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
hyphenimp.cxx
lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+23
-0
No files found.
lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
Dosyayı görüntüle @
7933b269
...
...
@@ -507,6 +507,29 @@ Reference < XHyphenatedWord > SAL_CALL Hyphenator::queryAlternativeSpelling(
return
NULL
;
}
#if defined(WNT)
static
OString
Win_GetShortPathName
(
const
OUString
&
rLongPathName
)
{
OString
aRes
;
sal_Unicode
aShortBuffer
[
1024
]
=
{
0
};
sal_Int32
nShortBufSize
=
SAL_N_ELEMENTS
(
aShortBuffer
);
// use the version of 'GetShortPathName' that can deal with Unicode...
sal_Int32
nShortLen
=
GetShortPathNameW
(
reinterpret_cast
<
LPCWSTR
>
(
rLongPathName
.
getStr
()
),
reinterpret_cast
<
LPWSTR
>
(
aShortBuffer
),
nShortBufSize
);
if
(
nShortLen
<
nShortBufSize
)
// conversion successful?
aRes
=
OString
(
OU2ENC
(
OUString
(
aShortBuffer
,
nShortLen
),
osl_getThreadTextEncoding
())
);
else
OSL_FAIL
(
"Win_GetShortPathName: buffer to short"
);
return
aRes
;
}
#endif //defined(WNT)
Reference
<
XPossibleHyphens
>
SAL_CALL
Hyphenator
::
createPossibleHyphens
(
const
OUString
&
aWord
,
const
::
com
::
sun
::
star
::
lang
::
Locale
&
aLocale
,
const
::
com
::
sun
::
star
::
beans
::
PropertyValues
&
aProperties
)
...
...
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