Skip to content
Permalink
Browse files

Also capitalise IPv6 as a custom label, update the Doxygen too, and a…

… note reminding people to do that in future
  • Loading branch information
peternewman committed Jan 11, 2020
1 parent 5c385d4 commit 5e2c352bda56b613a7143adca1010d7afb59fe4e
Showing with 11 additions and 1 deletion.
  1. +2 −0 common/utils/StringUtils.cpp
  2. +9 −1 include/ola/StringUtils.h
@@ -435,12 +435,14 @@ void CapitalizeLabel(string *s) {
}

void CustomCapitalizeLabel(string *s) {
// Remember to update the Doxygen in include/ola/StringUtils.h too
static const char* const transforms[] = {
"dhcp",
"dmx",
"dns",
"ip",
"ipv4", // Should really be IPv4 probably, but better than nothing
"ipv6", // Should really be IPv6 probably, but better than nothing
"led",
"mdmx", // City Theatrical, should really be mDMX, but better than nothing
"rdm",
@@ -441,8 +441,16 @@ void CapitalizeLabel(std::string *s);
*
* @param s a string to transform.
* The following are capitalized:
* - ip
* - dhcp
* - dmx
* - dns
* - ip
* - ipv4
* - ipv6
* - led
* - mdmx
* - rdm
* - uid
*/
void CustomCapitalizeLabel(std::string *s);

0 comments on commit 5e2c352

Please sign in to comment.
You can’t perform that action at this time.