You are here

function _syntaxhighlighter_string_begins_with in Syntax Highlighter 6

Same name and namespace in other branches
  1. 7 syntaxhighlighter.module \_syntaxhighlighter_string_begins_with()
1 call to _syntaxhighlighter_string_begins_with()
_syntaxhighlighter_replace in ./syntaxhighlighter.module
Escape " to ' in OPTIONS string

File

./syntaxhighlighter.module, line 316
Syntax highlight code using the Syntaxhighlighter javascript library. See http://alexgorbatchev.com/wiki/SyntaxHighlighter

Code

function _syntaxhighlighter_string_begins_with($string, $search) {
  return 0 == strncmp($string, $search, strlen($search));
}