MCPcopy Create free account
hub / github.com/boostorg/build / var_edit_translate_path

Function var_edit_translate_path

src/engine/function.cpp:819–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817 */
818
819static void var_edit_translate_path( string * out, int32_t pos, VAR_EDITS * edits )
820{
821 if ( edits->to_windows )
822 {
823 string result[ 1 ];
824 int32_t translated;
825
826 /* Translate path to os native format. */
827 translated = path_translate_to_os( out->value + pos, result );
828 if ( translated )
829 {
830 string_truncate( out, pos );
831 string_append( out, result->value );
832 edits->to_slashes = 0;
833 }
834
835 string_free( result );
836 }
837}
838
839#endif
840

Callers 1

var_edit_shiftFunction · 0.85

Calls 4

path_translate_to_osFunction · 0.85
string_truncateFunction · 0.85
string_appendFunction · 0.85
string_freeFunction · 0.85

Tested by

no test coverage detected