Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-uwp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-uwp
Commits
0d1dcc9f
Commit
0d1dcc9f
authored
7 years ago
by
Andreas Traczyk
Committed by
Adrien Béraud
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fallback avatar: fix getUpperInitial to skip spaces if any
Change-Id: I8446fc7a88c8c1b2a5a76cf6ad60f8fc8e784a4f
parent
cef2cb62
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Utils.h
+10
-7
10 additions, 7 deletions
Utils.h
with
10 additions
and
7 deletions
Utils.h
+
10
−
7
View file @
0d1dcc9f
...
@@ -336,14 +336,17 @@ TrimCmd(Platform::String^ s)
...
@@ -336,14 +336,17 @@ TrimCmd(Platform::String^ s)
String
^
String
^
getUpperInitial
(
String
^
str
)
getUpperInitial
(
String
^
str
)
{
{
if
(
str
!=
nullptr
||
str
!=
""
)
{
if
(
str
==
nullptr
||
str
==
""
)
{
std
::
wstring
s
(
str
->
Data
());
return
"?"
;
}
auto
it
=
str
->
Begin
();
auto
it
=
str
->
Begin
();
wchar_t
ch
[]
=
L" "
;
wchar_t
ch
[]
=
L" "
;
ch
[
0
]
=
towupper
(
it
[
0
]);
int
index
=
0
;
return
ref
new
String
(
ch
);
ch
[
0
]
=
towupper
(
*
it
++
);
while
(
it
!=
str
->
End
()
&&
ch
[
0
]
==
' '
)
{
ch
[
0
]
=
towupper
(
*
it
++
);
}
}
return
"?"
;
return
ref
new
String
(
ch
)
;
}
}
Platform
::
String
^
Platform
::
String
^
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment