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
Nipodemos
2020-09-13 01:12:39 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8151dfbd01bd3680a207fc590f4a002de13f20fb
8151dfbd
1 parent
8c72e012
put capitalize back in it's place
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
lib/src/utils/regex/get_utils.dart
lib/src/utils/regex/get_utils.dart
View file @
8151dfb
...
...
@@ -440,13 +440,6 @@ class GetUtils {
return
true
;
}
/// Uppercase first letter inside string and let the others lowercase
/// Example: your name => Your name
static
String
capitalizeFirst
(
String
s
)
{
if
(
isNullOrBlank
(
s
))
return
null
;
return
s
[
0
].
toUpperCase
()
+
s
.
substring
(
1
).
toLowerCase
();
}
/// Capitalize each word inside string
/// Example: your name => Your Name, your name => Your name
static
String
capitalize
(
String
s
)
{
...
...
@@ -461,6 +454,13 @@ class GetUtils {
return
result
.
trim
();
}
/// Uppercase first letter inside string and let the others lowercase
/// Example: your name => Your name
static
String
capitalizeFirst
(
String
s
)
{
if
(
isNullOrBlank
(
s
))
return
null
;
return
s
[
0
].
toUpperCase
()
+
s
.
substring
(
1
).
toLowerCase
();
}
/// Remove all whitespace inside string
/// Example: your name => yourname
static
String
removeAllWhitespace
(
String
s
)
{
...
...
Please
register
or
login
to post a comment