furi_string_replace

Function furi_string_replace 

Source
pub unsafe extern "C" fn furi_string_replace(
    string: *mut FuriString,
    needle: *mut FuriString,
    replace: *mut FuriString,
    start: usize,
) -> usize
Expand description

Replace a string ‘needle’ to string ‘replace’ in a string from ‘start’ position.

§Arguments

  • string - The string
  • needle - The needle
  • replace - The replace
  • start - The start (By default, start is zero)

§Returns

Return FURI_STRING_FAILURE if ‘needle’ not found or replace position.