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: SDFileSystem_Warning_Fixed
Dependents: DISCO-F746_WAV_PLAYER WAV
Diff: FileSelectorWav.cpp
- Revision:
- 11:c33c711a5712
- Parent:
- 5:7c8f0fc9dfb6
- Child:
- 12:f73e11831c1c
--- a/FileSelectorWav.cpp Mon Jan 16 00:41:10 2017 +0000
+++ b/FileSelectorWav.cpp Wed Mar 15 23:45:48 2017 +0000
@@ -126,18 +126,20 @@
// ファイルの一覧の消去
void FileSelector::Erase(uint16_t x, uint16_t y, uint16_t width, uint16_t height,
- uint32_t color)
+ uint32_t color)
{
lcd_->SetTextColor(color);
lcd_->FillRect(x, y, width, height);
}
- // 拡張子を削除した文字列を取得
+ // 拡張子を削除したファイル名を取得
string FileSelector::GetFileNameNoExt(int n)
{
string name = fileNames_[n];
int k = name.rfind(".");
- if (k != string::npos) return name.erase(k);
- else return name;
+ if (k != string::npos)
+ return name.erase(k);
+ else
+ return name;
}
}