Function: c-unescaped-nls-in-string-p
c-unescaped-nls-in-string-p is a byte-compiled function defined in
cc-mode.el.gz.
Signature
(c-unescaped-nls-in-string-p &optional QUOTE-POS)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-mode.el.gz
(defun c-unescaped-nls-in-string-p (&optional quote-pos)
;; Return whether unescaped newlines can be inside strings. If the current
;; language handles multi-line strings, the value of this function is always
;; nil.
;;
;; QUOTE-POS, if present, is the position of the opening quote of a string.
;; Depending on the language, there might be a special character before it
;; signifying the validity of such NLs.
(cond
(c-ml-string-opener-re nil)
((null c-multiline-string-start-char) nil)
((c-characterp c-multiline-string-start-char)
(and quote-pos
(eq (char-before quote-pos) c-multiline-string-start-char)))
(t t)))