Examples for 'cli::diff_str'


Compare two character strings, character by character

Aliases: diff_str

Keywords:

### ** Examples

str1 <- "abcdefghijklmnopqrstuvwxyz"
str2 <- "PREabcdefgMIDDLEnopqrstuvwxyzPOST"
diff_str(str1, str2)
{+PRE+}abcdefg[-hijklm-]{+MIDDLE+}nopqrstuvwxyz{+POST+}

[Package cli version 3.6.3 Index]