Lines Matching defs:SubBuffer
135 char *SubBuffer = Buffer;
141 if ((SubBuffer[0] == '/') &&
142 (SubBuffer[1] == '*'))
144 LiteralEnd = strstr (SubBuffer, "*/");
145 SubBuffer += 2; /* Get past comment opening */
149 return SubBuffer;
152 while (SubBuffer < LiteralEnd)
154 if (*SubBuffer == '\n')
159 SubBuffer++;
162 SubBuffer += 2; /* Get past comment close */
167 else if (*SubBuffer == '\"')
169 SubBuffer++;
170 LiteralEnd = AsSkipPastChar (SubBuffer, '\"');
173 return SubBuffer;
181 return SubBuffer;
198 char *SubBuffer = Buffer;
205 while (*SubBuffer)
208 SubBuffer = AsCheckAndSkipLiterals (SubBuffer, &TotalLines);
210 if (*SubBuffer == '\n')
214 else if (!(strncmp (" if", SubBuffer, 3)))
216 SubBuffer += 2;
217 NextBrace = strstr (SubBuffer, "{");
218 NextSemicolon = strstr (SubBuffer, ";");
219 NextIf = strstr (SubBuffer, " if");
233 else if (!(strncmp (" else if", SubBuffer, 8)))
235 SubBuffer += 7;
236 NextBrace = strstr (SubBuffer, "{");
237 NextSemicolon = strstr (SubBuffer, ";");
238 NextIf = strstr (SubBuffer, " if");
252 else if (!(strncmp (" else", SubBuffer, 5)))
254 SubBuffer += 4;
255 NextBrace = strstr (SubBuffer, "{");
256 NextSemicolon = strstr (SubBuffer, ";");
257 NextIf = strstr (SubBuffer, " if");
272 SubBuffer++;
291 char *SubBuffer = Buffer;
296 while (*SubBuffer)
298 while (*SubBuffer != '\n')
300 if (!*SubBuffer)
305 if (*SubBuffer == ' ')
309 StartWhiteSpace = SubBuffer;
317 SubBuffer++;
322 SpaceCount += (SubBuffer - StartWhiteSpace);
326 SubBuffer = AsRemoveData (StartWhiteSpace, SubBuffer);
330 SubBuffer++;
379 char *SubBuffer;
385 SubBuffer = strstr (Buffer, HeaderBegin);
386 if (!SubBuffer)
393 TokenEnd = strstr (SubBuffer, "*/");
398 AsReplaceData (SubBuffer, TokenEnd - SubBuffer, NewHeader, strlen (NewHeader));
420 char *SubBuffer;
429 SubBuffer = Buffer;
436 SubString1 = strstr (SubBuffer, Target);
446 SubString2 = strstr (SubBuffer, AS_START_IGNORE);
463 SubBuffer = SubString2;
474 SubBuffer = SubString1 + 1;
479 SubBuffer = AsReplaceData (SubString1, TargetLength, Replacement, ReplacementLength);
484 SubBuffer = AsInsertData (SubBuffer, " ", 8);
508 char *SubBuffer;
511 SubBuffer = Buffer;
518 SubString = strstr (SubBuffer, "\r\n");
524 SubBuffer = AsReplaceData (SubString, 1, NULL, 0);
543 char *SubBuffer;
546 SubBuffer = Buffer;
553 SubString = strstr (SubBuffer, "\n");
559 SubBuffer = AsInsertData (SubString, "\r", 1);
560 SubBuffer += 1;
581 char *SubBuffer = Buffer;
588 while (*SubBuffer)
592 if ((SubBuffer[0] == '/') &&
593 (SubBuffer[1] == '*'))
595 SubBuffer = strstr (SubBuffer, "*/");
596 if (!SubBuffer)
601 SubBuffer += 2;
607 if (*SubBuffer == '\"')
609 SubBuffer++;
610 SubBuffer = AsSkipPastChar (SubBuffer, '\"');
611 if (!SubBuffer)
617 if (!strncmp ("\n}", SubBuffer, 2))
631 if ((*SubBuffer == '{') && !isdigit ((int) SubBuffer[1]))
642 Beginning = SubBuffer - 1;
671 SubBuffer++;
672 Length = strlen (SubBuffer);
677 AsReplaceData (Beginning, SubBuffer - Beginning, " {\n", 3);
681 Next = SubBuffer + 1;
710 AsReplaceData (Beginning, SubBuffer - Beginning, " {\n", 3);
714 AsReplaceData (Beginning, SubBuffer - Beginning, " {", 2);
721 SubBuffer++;
739 char *SubBuffer = Buffer;
745 while (*SubBuffer)
747 if (*SubBuffer == '\n')
758 if ((SubBuffer[0] == '/') &&
759 (SubBuffer[1] == '*'))
761 SubBuffer = strstr (SubBuffer, "*/");
762 if (!SubBuffer)
767 SubBuffer += 2;
773 if (*SubBuffer == '\"')
775 SubBuffer++;
776 SubBuffer = AsSkipPastChar (SubBuffer, '\"');
777 if (!SubBuffer)
784 if (*SubBuffer == ' ')
792 NewSubBuffer = (SubBuffer + 1) - 4;
798 SubBuffer = AsRemoveData (NewSubBuffer, SubBuffer + 1);
811 SubBuffer++;
829 char *SubBuffer = Buffer;
842 while (*SubBuffer)
844 if (*SubBuffer == '\n')
852 SubBuffer++;
860 FirstNonBlank = SubBuffer;
872 ThisColumnStart = FirstNonBlank - SubBuffer;
892 if ((SubBuffer[0] == '*') &&
893 (SubBuffer[1] == '/'))
896 SubBuffer += 2;
898 if (*SubBuffer == '\n')
907 SubBuffer++;
915 if ((SubBuffer[0] == '/') &&
916 (SubBuffer[1] == '*'))
920 CommentEnd = strstr (SubBuffer, "*/");
928 while ((SubBuffer < CommentEnd) &&
929 (*SubBuffer != '\n'))
931 SubBuffer++;
934 if (*SubBuffer == '\n')
951 if ((!CommentEnd) && (*SubBuffer == '\"'))
953 SubBuffer++;
954 SubBuffer = AsSkipPastChar (SubBuffer, '\"');
955 if (!SubBuffer)
962 if (*SubBuffer != ' ')
966 SubBuffer = AsSkipUntilChar (SubBuffer, '\n');
967 if (!SubBuffer)
994 NewSubBuffer = SubBuffer - 3;
1000 SubBuffer++;
1006 SubBuffer = AsRemoveData (NewSubBuffer, SubBuffer);
1011 SubBuffer++;
1030 char *SubBuffer = Buffer;
1036 while (*SubBuffer)
1038 EndOfLine = AsSkipUntilChar (SubBuffer, '\n');
1045 if ((EndOfLine - SubBuffer) > 80)
1048 VERBOSE_PRINT (("long: %.80s\n", SubBuffer));
1052 SubBuffer = EndOfLine + 1;
1115 char *SubBuffer = Buffer;
1119 while (SubBuffer)
1121 SubBuffer = strstr (SubBuffer, "//");
1122 if (SubBuffer)
1125 SubBuffer += 2;
1151 char *SubBuffer = Buffer;
1157 while (*SubBuffer)
1161 if ((SubBuffer[0] == '/') &&
1162 (SubBuffer[1] == '*'))
1164 SubBuffer += 2;
1168 if (SubBuffer[0] == '\n')
1171 SubBuffer++;
1180 while (SubBuffer[0] && SubBuffer[1] &&
1181 !(((SubBuffer[0] == '*') &&
1182 (SubBuffer[1] == '/'))))
1184 if (SubBuffer[0] == '\n')
1189 SubBuffer++;
1195 else if ((SubBuffer[0] == '\n') &&
1196 (SubBuffer[1] != '\n'))
1203 else if ((SubBuffer[0] == '\n') &&
1204 (SubBuffer[1] == '\n'))
1209 SubBuffer++;
1244 char *SubBuffer;
1271 SubBuffer = Buffer;
1281 SubString = strstr (SubBuffer, LowerKeyword);
1288 SubBuffer = SubString;
1300 if (*(SubBuffer + KeywordLength) != '\n')
1306 AsInsertData (SubBuffer + KeywordLength, " ", 8);
1338 SubBuffer = SubString + InsertLength;
1344 memmove (SubBuffer, SubString, KeywordLength);
1357 SubBuffer += KeywordLength;
1375 char *SubBuffer = Buffer;
1386 SubBuffer = strstr (SubBuffer, " /*");
1387 if (!SubBuffer)
1394 Ptr1 = strstr (SubBuffer, "*/");
1402 Ptr2 = strstr (SubBuffer, "\n");
1414 SubBuffer = Ptr2;
1435 SubBuffer = Ptr1;