Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
65a2274d
Commit
65a2274d
authored
Jul 29, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: GdipSetStringFormatDigitSubstitution implemented.
parent
9ed8a2b6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
stringformat.c
dlls/gdiplus/stringformat.c
+13
-0
stringformat.c
dlls/gdiplus/tests/stringformat.c
+13
-0
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/gdiplus.spec
View file @
65a2274d
...
...
@@ -586,7 +586,7 @@
@ stdcall GdipSetSmoothingMode(ptr long)
@ stdcall GdipSetSolidFillColor(ptr ptr)
@ stdcall GdipSetStringFormatAlign(ptr long)
@ st
ub GdipSetStringFormatDigitSubstitution
@ st
dcall GdipSetStringFormatDigitSubstitution(ptr long long)
@ stdcall GdipSetStringFormatFlags(ptr long)
@ stdcall GdipSetStringFormatHotkeyPrefix(ptr long)
@ stdcall GdipSetStringFormatLineAlign(ptr long)
...
...
dlls/gdiplus/stringformat.c
View file @
65a2274d
...
...
@@ -159,6 +159,19 @@ GpStatus WINGDIPAPI GdipSetStringFormatAlign(GpStringFormat *format,
return
Ok
;
}
/*FIXME: digit substitution actually not implemented, get/set only */
GpStatus
WINGDIPAPI
GdipSetStringFormatDigitSubstitution
(
GpStringFormat
*
format
,
LANGID
language
,
StringDigitSubstitute
substitute
)
{
if
(
!
format
)
return
InvalidParameter
;
format
->
digitlang
=
language
;
format
->
digitsub
=
substitute
;
return
Ok
;
}
GpStatus
WINGDIPAPI
GdipSetStringFormatHotkeyPrefix
(
GpStringFormat
*
format
,
INT
hkpx
)
{
...
...
dlls/gdiplus/tests/stringformat.c
View file @
65a2274d
...
...
@@ -96,6 +96,8 @@ static void test_digitsubstitution(void)
expect
(
InvalidParameter
,
stat
);
stat
=
GdipGetStringFormatDigitSubstitution
(
NULL
,
&
digitlang
,
&
digitsub
);
expect
(
InvalidParameter
,
stat
);
stat
=
GdipSetStringFormatDigitSubstitution
(
NULL
,
LANG_NEUTRAL
,
StringDigitSubstituteNone
);
expect
(
InvalidParameter
,
stat
);
/* try to get both and one by one */
stat
=
GdipGetStringFormatDigitSubstitution
(
format
,
&
digitlang
,
&
digitsub
);
...
...
@@ -113,6 +115,17 @@ static void test_digitsubstitution(void)
expect
(
Ok
,
stat
);
expect
(
LANG_NEUTRAL
,
digitlang
);
/* set/get */
stat
=
GdipSetStringFormatDigitSubstitution
(
format
,
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_TRADITIONAL
),
StringDigitSubstituteUser
);
expect
(
Ok
,
stat
);
digitsub
=
StringDigitSubstituteNone
;
digitlang
=
LANG_RUSSIAN
;
stat
=
GdipGetStringFormatDigitSubstitution
(
format
,
&
digitlang
,
&
digitsub
);
expect
(
Ok
,
stat
);
expect
(
StringDigitSubstituteUser
,
digitsub
);
expect
(
MAKELANGID
(
LANG_CHINESE
,
SUBLANG_CHINESE_TRADITIONAL
),
digitlang
);
stat
=
GdipDeleteStringFormat
(
format
);
expect
(
Ok
,
stat
);
}
...
...
include/gdiplusflat.h
View file @
65a2274d
...
...
@@ -445,6 +445,7 @@ GpStatus WINGDIPAPI GdipGetStringFormatMeasurableCharacterRangeCount(
GDIPCONST
GpStringFormat
*
,
INT
*
);
GpStatus
WINGDIPAPI
GdipGetStringFormatTrimming
(
GpStringFormat
*
,
StringTrimming
*
);
GpStatus
WINGDIPAPI
GdipSetStringFormatAlign
(
GpStringFormat
*
,
StringAlignment
);
GpStatus
WINGDIPAPI
GdipSetStringFormatDigitSubstitution
(
GpStringFormat
*
,
LANGID
,
StringDigitSubstitute
);
GpStatus
WINGDIPAPI
GdipSetStringFormatHotkeyPrefix
(
GpStringFormat
*
,
INT
);
GpStatus
WINGDIPAPI
GdipSetStringFormatLineAlign
(
GpStringFormat
*
,
StringAlignment
);
GpStatus
WINGDIPAPI
GdipSetStringFormatMeasurableCharacterRanges
(
...
...
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