MIDITrail をピカピカにする。鍵盤方向自動切替・多ポート・歌詞対応等
Revision | 7f19d9a23727dc4ae1f44ecb195c42a8231ee24d (tree) |
---|---|
Time | 2018-04-11 18:27:44 |
Author | yoshy <yoshy@user...> |
Commiter | yoshy |
Merge commit 'mod_yossiepon_20170528' into develop
@@ -13,6 +13,12 @@ | ||
13 | 13 | #include "SMEventMeta.h" |
14 | 14 | #include <new> |
15 | 15 | |
16 | +// >>> add 20170528 yossiepon begin | |
17 | +#include <algorithm> | |
18 | +#include <functional> | |
19 | +#include <cctype> | |
20 | +// <<< add 20170528 yossiepon end | |
21 | + | |
16 | 22 | using namespace YNBaseLib; |
17 | 23 | |
18 | 24 | namespace SMIDILib { |
@@ -127,6 +133,12 @@ int SMEventMeta::GetText( | ||
127 | 133 | |
128 | 134 | *pText = pBuf; |
129 | 135 | |
136 | +// >>> add 20170528 yossiepon begin | |
137 | + // rtrim | |
138 | + pText->erase(std::find_if(pText->rbegin(), pText->rend(), | |
139 | + std::not1(std::ptr_fun<int, int>(std::isspace))).base(), pText->end()); | |
140 | +// <<< add 20170528 yossiepon end | |
141 | + | |
130 | 142 | EXIT:; |
131 | 143 | delete [] pBuf; |
132 | 144 | return result; |
@@ -427,6 +427,12 @@ const char* SMSeqData::GetCopyRight() | ||
427 | 427 | //****************************************************************************** |
428 | 428 | const char* SMSeqData::GetTitle() |
429 | 429 | { |
430 | +// >>> add 20170528 yossiepon begin | |
431 | + if (m_Title.length() == 0) { | |
432 | + return m_FileName.c_str(); | |
433 | + } | |
434 | +// <<< add 20170528 yossiepon end | |
435 | + | |
430 | 436 | return m_Title.c_str(); |
431 | 437 | } |
432 | 438 |