[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Summary view] [Print] [Text view]
1 /** 2 * Parse given inline markup in text 3 * 4 * The markup must start and end with exactly 2 characters 5 * 6 * @param {string} str First markup string 7 * @param {!RegExp} regexp Regexp used to match the markup's span 8 * @param {string} tagName Name of the tag produced by this markup 9 */ 10 function parseInlineMarkup(str, regexp, tagName) 11 { 12 if (text.indexOf(str) === -1) 13 { 14 return; 15 } 16 17 var m; 18 while (m = regexp.exec(text)) 19 { 20 var match = m[0], 21 matchPos = m.index, 22 matchLen = match.length, 23 endPos = matchPos + matchLen - 2; 24 25 addTagPair(tagName, matchPos, 2, endPos, 2); 26 overwrite(matchPos, 2); 27 overwrite(endPos, 2); 28 } 29 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |