@@ -24,16 +24,16 @@ -(id) initWithCode:(NSString *)code
2424 if (self) {
2525 // Trim the space around the braces
2626 // Then trim the new line character
27- self.code = [[code stringByReplacingRegexPattern :@" \\ s*(\\ (.*\?\\ ))\\ s*" withString: @" $1" ]
28- stringByReplacingRegexPattern :@" \\ s*\n\\ s*" withString: @" " ];
27+ self.code = [[code vv_stringByReplacingRegexPattern :@" \\ s*(\\ (.*\?\\ ))\\ s*" withString: @" $1" ]
28+ vv_stringByReplacingRegexPattern :@" \\ s*\n\\ s*" withString: @" " ];
2929
3030 }
3131 return self;
3232}
3333
3434-(NSString *) baseIndentation
3535{
36- NSArray *matchedSpaces = [self .code stringsByExtractingGroupsUsingRegexPattern :@" ^(\\ s*)" ];
36+ NSArray *matchedSpaces = [self .code vv_stringsByExtractingGroupsUsingRegexPattern :@" ^(\\ s*)" ];
3737 if (matchedSpaces.count > 0 ) {
3838 return matchedSpaces[0 ];
3939 } else {
@@ -47,19 +47,19 @@ -(NSString *) document
4747 NSString *baseIndent = [self baseIndentation ];
4848
4949 VVBaseCommenter *commenter = nil ;
50- if ([trimCode isObjCMethod ]) {
50+ if ([trimCode vv_isObjCMethod ]) {
5151 commenter = [[VVMethodCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
52- } else if ([trimCode isProperty ]) {
52+ } else if ([trimCode vv_isProperty ]) {
5353 commenter = [[VVPropertyCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
54- } else if ([trimCode isCFunction ]) {
54+ } else if ([trimCode vv_isCFunction ]) {
5555 commenter = [[VVFunctionCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
56- } else if ([trimCode isMacro ]) {
56+ } else if ([trimCode vv_isMacro ]) {
5757 commenter = [[VVMacroCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
58- } else if ([trimCode isStruct ]) {
58+ } else if ([trimCode vv_isStruct ]) {
5959 commenter = [[VVStructCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
60- } else if ([trimCode isUnion ]) {
60+ } else if ([trimCode vv_isUnion ]) {
6161 commenter = [[VVStructCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
62- } else if ([trimCode isEnum ]) {
62+ } else if ([trimCode vv_isEnum ]) {
6363 commenter = [[VVEnumCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
6464 } else {
6565 commenter = [[VVVariableCommenter alloc ] initWithIndentString: baseIndent codeString: trimCode];
0 commit comments