Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/importer/obj_import_string_utils.hh
- This file was moved from source/blender/io/common/IO_string_utils.hh.
| Context not available. | |||||
| #include "BLI_string_ref.hh" | #include "BLI_string_ref.hh" | ||||
| /* | /* | ||||
| * Various text parsing utilities commonly used by text-based input formats. | * Various text parsing utilities used by OBJ importer. | ||||
| * The utilities are not directly usable by other formats, since | |||||
| * they treat backslash (\) as a whitespace character (OBJ format | |||||
| * allows backslashes to function as a line-continuation character). | |||||
| */ | */ | ||||
| namespace blender::io { | namespace blender::io::obj { | ||||
| /** | /** | ||||
| * Fetches next line from an input string buffer. | * Fetches next line from an input string buffer. | ||||
| Context not available. | |||||
| * the input line. | * the input line. | ||||
| * | * | ||||
| * Note that backslash (\) character is treated as a line | * Note that backslash (\) character is treated as a line | ||||
| * continuation, similar to OBJ file format or a C preprocessor. | * continuation. | ||||
| */ | */ | ||||
| StringRef read_next_line(StringRef &buffer); | StringRef read_next_line(StringRef &buffer); | ||||
| Context not available. | |||||
| */ | */ | ||||
| StringRef parse_floats(StringRef str, float fallback, float *dst, int count); | StringRef parse_floats(StringRef str, float fallback, float *dst, int count); | ||||
| } // namespace blender::io | } // namespace blender::io::obj | ||||
| Context not available. | |||||