fn replace_suffix(orig: &str) -> String {
    if orig.contains("1D") { return orig.replace("1D", "1d"); }
    if orig.contains("2D") { return orig.replace("2D", "2d"); }
    if orig.contains("3D") { return orig.replace("3D", "3d"); }
    if orig.contains("KHR") { return orig.replace("KHR", "Khr"); }
    if orig.contains("EXT") { return orig.replace("EXT", "Ext"); }
    if orig.contains("AMD") { return orig.replace("AMD", "Amd"); }
    if orig.contains("NVX") { return orig.replace("NVX", "Nvx"); }
    if orig.contains("KHX") { return orig.replace("KHX", "Khx"); }
    if orig.contains("GOOGLE") { return orig.replace("GOOGLE", "Google");}
    if orig.contains("MVK") { return orig.replace("MVK", "Mvk"); }
    if orig.contains("NV") { return orig.replace("NV", "Nv"); }
    if orig.contains("NN") { return orig.replace("NN", "Nn"); }

    orig.to_string()
}
/// Changes capitalization of extension and dimension type name suffixes.
Changes capitalization of extension and dimension type name suffixes.
Changes capitalization of extension and dimension type name suffixes .
fn replace_suffix(orig: &str) -> String {
    if orig.contains("1D") { return orig.replace("1D", "1d"); }
    if orig.contains("2D") { return orig.replace("2D", "2d"); }
    if orig.contains("3D") { return orig.replace("3D", "3d"); }
    if orig.contains("KHR") { return orig.replace("KHR", "Khr"); }
    if orig.contains("EXT") { return orig.replace("EXT", "Ext"); }
    if orig.contains("AMD") { return orig.replace("AMD", "Amd"); }
    if orig.contains("NVX") { return orig.replace("NVX", "Nvx"); }
    if orig.contains("KHX") { return orig.replace("KHX", "Khx"); }
    if orig.contains("GOOGLE") { return orig.replace("GOOGLE", "Google");}
    if orig.contains("MVK") { return orig.replace("MVK", "Mvk"); }
    if orig.contains("NV") { return orig.replace("NV", "Nv"); }
    if orig.contains("NN") { return orig.replace("NN", "Nn"); }
    orig.to_string()
}
fn replace_suffix ( orig : & str ) -> String { if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } if orig . contains ( " " ) { return orig . replace ( " " , " " ) ; } orig . to_string ( ) }
Changes capitalization of extension and dimension type name suffixes.
Changes capitalization of extension and dimension type name suffixes .
orig
&str
orig
&str