rem: int32 deviceIndex = atoi(name.String()) + 1; string.CopyInto(name, previousSlash, slash - previousSlash); name << " mouse " << deviceIndex;
add: int32 previousSlash = string.FindLast("/", slash); string.CopyInto(name, previousSlash + 1, slash - previousSlash - 1); name << " Mouse " << index;
context: get_short_name(const char *longName){	BString string(longName);	BString name;		int32 slash = string.FindLast("/");	int32 previousSlash = string.FindLast("/", slash) + 1;	string.CopyInto(name, slash, string.Length() - slash);		int32 deviceIndex = atoi(name.String()) + 1;	string.CopyInto(name, previousSlash, slash - previousSlash); 	name << " mouse " << deviceIndex;			return strdup(name.String());}