Skip to content

Commit a59c253

Browse files
committed
Custom Capitalise ASC and NSC too
1 parent 37c175d commit a59c253

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

common/utils/StringUtils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ void CapitalizeLabel(string *s) {
488488
void CustomCapitalizeLabel(string *s) {
489489
// Remember to update the Doxygen in include/ola/StringUtils.h too
490490
static const char* const transforms[] = {
491+
"asc",
491492
"dhcp",
492493
"dmx",
493494
"dns",
@@ -497,6 +498,7 @@ void CustomCapitalizeLabel(string *s) {
497498
"json",
498499
"led",
499500
"mdmx", // City Theatrical, should really be mDMX, but better than nothing
501+
"nsc",
500502
"pdl",
501503
"pid",
502504
"rdm",

include/ola/StringUtils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ void CapitalizeLabel(std::string *s);
490490
*
491491
* @param s a string to transform.
492492
* The following are capitalized:
493+
* - asc
493494
* - dhcp
494495
* - dmx
495496
* - dns
@@ -499,6 +500,7 @@ void CapitalizeLabel(std::string *s);
499500
* - json
500501
* - led
501502
* - mdmx
503+
* - nsc
502504
* - rdm
503505
* - uid
504506
* - url

0 commit comments

Comments
 (0)