diff options
author | Gilles Moris <gilles.moris@free.fr> | 2019-05-15 07:33:38 +0200 |
---|---|---|
committer | Gilles Moris <gilles.moris@free.fr> | 2019-05-15 07:33:38 +0200 |
commit | f9d08a6b6bf0bae229f45eeebeeacc64d4369151 (patch) | |
tree | ebecf4d6799394c59283f7930594b11083acb53c /parttypes.cc | |
parent | 522273e3db5823aedf6af8786cb01a316367ed32 (diff) | |
download | sgdisk-f9d08a6b6bf0bae229f45eeebeeacc64d4369151.tar.gz |
Perform case insensitive search of partition types
Diffstat (limited to 'parttypes.cc')
-rw-r--r-- | parttypes.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parttypes.cc b/parttypes.cc index 38b9193..9508933 100644 --- a/parttypes.cc +++ b/parttypes.cc @@ -510,10 +510,10 @@ void PartType::ShowAllTypes(int maxLines) const { cout.unsetf(ios::uppercase); if (maxLines > 0) { cout << "Type search string, or <Enter> to show all codes: "; - matchString = ReadString(); + matchString = ToLower(ReadString()); } // if while (thisType != NULL) { - found = thisType->name.find(matchString); + found = ToLower(thisType->name).find(matchString); if ((thisType->display == 1) && (found != string::npos)) { // show it cout.fill('0'); cout.width(4); |