Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_text/text_format_pov.c
| Context not available. | |||||
| else if (STR_LITERAL_STARTSWITH(string, "if", len)) i = len; | else if (STR_LITERAL_STARTSWITH(string, "if", len)) i = len; | ||||
| else i = 0; | else i = 0; | ||||
| /* If next source char is an identifier (eg. 'i' in "definate") no match */ | /* If next source char is an identifier (eg. 'i' in "definite") no match */ | ||||
| return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | ||||
| } | } | ||||
| Context not available. | |||||
| else if (STR_LITERAL_STARTSWITH(string, "str", len)) i = len; | else if (STR_LITERAL_STARTSWITH(string, "str", len)) i = len; | ||||
| else i = 0; | else i = 0; | ||||
| /* If next source char is an identifier (eg. 'i' in "definate") no match */ | /* If next source char is an identifier (eg. 'i' in "definite") no match */ | ||||
| return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | ||||
| } | } | ||||
| Context not available. | |||||
| else if (STR_LITERAL_STARTSWITH(string, "z", len)) i = len; | else if (STR_LITERAL_STARTSWITH(string, "z", len)) i = len; | ||||
| else i = 0; | else i = 0; | ||||
| /* If next source char is an identifier (eg. 'i' in "definate") no match */ | /* If next source char is an identifier (eg. 'i' in "definite") no match */ | ||||
| return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | ||||
| } | } | ||||
| Context not available. | |||||
| else if (STR_LITERAL_STARTSWITH(string, "gall", len)) i = len; | else if (STR_LITERAL_STARTSWITH(string, "gall", len)) i = len; | ||||
| else i = 0; | else i = 0; | ||||
| /* If next source char is an identifier (eg. 'i' in "definate") no match */ | /* If next source char is an identifier (eg. 'i' in "definite") no match */ | ||||
| return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | return (i == 0 || text_check_identifier(string[i])) ? -1 : i; | ||||
| } | } | ||||
| Context not available. | |||||