Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: _24LCXXX
Dependents: vfd_modular_clock_mbed
Diff: flw.cpp
- Revision:
- 2:ff0163bc298d
- Parent:
- 0:4d3dec05a4b7
- Child:
- 5:8748fd0dce7c
diff -r 4d3dec05a4b7 -r ff0163bc298d flw.cpp
--- a/flw.cpp Tue Feb 10 09:53:03 2015 +0000
+++ b/flw.cpp Sun Feb 15 10:53:01 2015 +0000
@@ -139,8 +139,19 @@
return m_current_word;
}
-char* FourLetterWord::getWord()
+char* FourLetterWord::getWord(bool adjustCase)
{
- if (m_censored) return get_word_censored();
- return get_word_uncensored();
+ char* ret;
+
+ if (m_censored) ret = get_word_censored();
+ ret = get_word_uncensored();
+
+ if (adjustCase) {
+ // lowercase letters
+ ret[1] += 32;
+ ret[2] += 32;
+ ret[3] += 32;
+ }
+
+ return ret;
}