|
@@ -430,23 +430,7 @@ attention to case differences."
|
|
|
(let ((start-pos (- (length string) (length suffix))))
|
|
|
(and (>= start-pos 0)
|
|
|
(eq t (compare-strings suffix nil nil
|
|
|
- string start-pos nil ignore-case)))))
|
|
|
-
|
|
|
- (defsubst string-blank-p (string)
|
|
|
- "Check whether STRING is either empty or only whitespace."
|
|
|
- (string-match-p "\\`[ \t\n\r]*\\'" string))
|
|
|
-
|
|
|
- (defsubst string-remove-prefix (prefix string)
|
|
|
- "Remove PREFIX from STRING if present."
|
|
|
- (if (string-prefix-p prefix string)
|
|
|
- (substring string (length prefix))
|
|
|
- string))
|
|
|
-
|
|
|
- (defsubst string-remove-suffix (suffix string)
|
|
|
- "Remove SUFFIX from STRING if present."
|
|
|
- (if (string-suffix-p suffix string)
|
|
|
- (substring string 0 (- (length string) (length suffix)))
|
|
|
- string)))
|
|
|
+ string start-pos nil ignore-case))))))
|
|
|
|
|
|
(provide 'org-compat)
|
|
|
|