📄 antlrtoken+debuggersupport.m
字号:
//// ANTLRToken+DebuggerSupport.m// ANTLR//// Created by Kay Röpke on 03.12.2006.// Copyright 2006 classDump. All rights reserved.//#import "ANTLRToken+DebuggerSupport.h"@implementation ANTLRToken(DebuggerSupport)- (NSString *)debuggerDescription{ NSString *text = [self text]; NSMutableString *escapedText; if (text) { escapedText = [text mutableCopy]; NSRange wholeString = NSMakeRange(0,[escapedText length]); [escapedText replaceOccurrencesOfString:@"%" withString:@"%25" options:0 range:wholeString]; [escapedText replaceOccurrencesOfString:@"\n" withString:@"%0A" options:0 range:wholeString]; [escapedText replaceOccurrencesOfString:@"\r" withString:@"%0D" options:0 range:wholeString]; } else { escapedText = [NSMutableString stringWithString:@""]; } // format is tokenIndex, type, channel, line, col, (escaped)text return [NSString stringWithFormat:@"%u %d %u %u %u \"%@", [self tokenIndex], [self type], [self channel], [self line], [self charPositionInLine], escapedText ];}@end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -