rem: int32 previousSlash = string.FindLast("/", slash) + 1; string.CopyInto(name, slash, string.Length() - slash);
add: string.CopyInto(name, slash + 1, string.Length() - slash); int32 index = atoi(name.String()) + 1;
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());}