* check if current placement is before a comment * * @return is before a comment. */
| 1939 | * @return is before a comment. |
| 1940 | */ |
| 1941 | bool ASFormatter::isBeforeComment() const |
| 1942 | { |
| 1943 | bool foundComment = false; |
| 1944 | size_t peekNum = currentLine.find_first_not_of(" \t", charNum + 1); |
| 1945 | |
| 1946 | if (peekNum == string::npos) |
| 1947 | return foundComment; |
| 1948 | |
| 1949 | foundComment = (currentLine.compare(peekNum, 2, "/*") == 0); |
| 1950 | |
| 1951 | return foundComment; |
| 1952 | } |
| 1953 | |
| 1954 | /** |
| 1955 | * check if current placement is before a comment or line-comment |
nothing calls this directly
no outgoing calls
no test coverage detected