Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Gwhyyy
2022-09-21 00:28:47 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
44075f8cd8e1c898b334aa00f60aaa251da06feb
44075f8c
1 parent
3441d5d7
[ Edit ] edited comments
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
lib/get_utils/src/extensions/string_extensions.dart
lib/get_utils/src/get_utils/get_utils.dart
lib/get_utils/src/extensions/string_extensions.dart
View file @
44075f8
...
...
@@ -124,5 +124,8 @@ extension GetStringUtils on String {
final
path
=
startsWith
(
'/'
)
?
this
:
'/
$this
'
;
return
GetUtils
.
createPath
(
path
,
segments
);
}
String
capitalizeAllWordsFirstLetter
()
=>
GetUtils
.
capitalizeAllWordsFirstLetter
(
this
);
/// capitalize only first letter in String words to upper case
String
capitalizeAllWordsFirstLetter
()
=>
GetUtils
.
capitalizeAllWordsFirstLetter
(
this
);
}
...
...
lib/get_utils/src/get_utils/get_utils.dart
View file @
44075f8
...
...
@@ -595,10 +595,9 @@ class GetUtils {
return
numericOnlyStr
;
}
/// capitalize the first letter of each word in a string
/// Example: your name => Your Name
/// Example 2 : this is an example text=> This Is An Example Text
// "emm, lemme think !",
/// Capitalize only the first letter of each word in a string
/// Example: getx will make it easy => Getx Will Make It Easy
/// Example 2 : this is an example text => This Is An Example Text
static
String
capitalizeAllWordsFirstLetter
(
String
s
)
{
String
lowerCasedString
=
s
.
toLowerCase
();
String
stringWithoutExtraSpaces
=
lowerCasedString
.
trim
();
...
...
Please
register
or
login
to post a comment