адаптация s13bby/osc под vst и gui. (вайбкод)
вайбкод потому что мне в моменте стало понятно. что проще было сразу писать на фреймворке JUCE, чем адаптировать консольное приложение на MiniAudio. обновляться данный репозиторий не будет. СmakeLists адаптирован онли под linux.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,272 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<doxygenlayout version="2.0">
|
||||
<!-- Generated by doxygen 1.14.0 -->
|
||||
<!-- Navigation index tabs for HTML output -->
|
||||
<navindex>
|
||||
<tab type="mainpage" visible="yes" title="Modules"/>
|
||||
<tab type="pages" visible="no" title="" intro=""/>
|
||||
<tab type="topics" visible="no" title="" intro=""/>
|
||||
<tab type="modules" visible="no" title="" intro="">
|
||||
<tab type="modulelist" visible="yes" title="" intro=""/>
|
||||
<tab type="modulemembers" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="namespaces" visible="no" title="">
|
||||
<tab type="namespacelist" visible="yes" title="" intro=""/>
|
||||
<tab type="namespacemembers" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="concepts" visible="no" title="">
|
||||
</tab>
|
||||
<tab type="interfaces" visible="no" title="">
|
||||
<tab type="interfacelist" visible="yes" title="" intro=""/>
|
||||
<tab type="interfaceindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
<tab type="interfacehierarchy" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="classes" visible="no" title="">
|
||||
<tab type="classlist" visible="yes" title="" intro=""/>
|
||||
<tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
<tab type="hierarchy" visible="yes" title="" intro=""/>
|
||||
<tab type="classmembers" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="classindex" visible="$ALPHABETICAL_INDEX" title="All Classes"/>
|
||||
<tab type="structs" visible="no" title="">
|
||||
<tab type="structlist" visible="yes" title="" intro=""/>
|
||||
<tab type="structindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
</tab>
|
||||
<tab type="exceptions" visible="no" title="">
|
||||
<tab type="exceptionlist" visible="yes" title="" intro=""/>
|
||||
<tab type="exceptionindex" visible="$ALPHABETICAL_INDEX" title=""/>
|
||||
<tab type="exceptionhierarchy" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="files" visible="no" title="">
|
||||
<tab type="filelist" visible="yes" title="" intro=""/>
|
||||
<tab type="globals" visible="yes" title="" intro=""/>
|
||||
</tab>
|
||||
<tab type="examples" visible="no" title="" intro=""/>
|
||||
<tab type="user" visible="yes" title="Tutorials" url="https://juce.com/learn/tutorials"/>
|
||||
<tab type="user" visible="yes" title="Course" url="https://juce.com/learn/course"/>
|
||||
</navindex>
|
||||
|
||||
<!-- Layout definition for a class page -->
|
||||
<class>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<usedfiles visible="$SHOW_USED_FILES"/>
|
||||
<includes visible="$SHOW_HEADERFILE"/>
|
||||
<inheritancegraph visible="yes"/>
|
||||
<collaborationgraph visible="yes"/>
|
||||
<memberdecl>
|
||||
<nestedclasses visible="yes" title=""/>
|
||||
<publictypes visible="yes" title=""/>
|
||||
<services visible="yes" title=""/>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<publicslots visible="yes" title=""/>
|
||||
<signals visible="yes" title=""/>
|
||||
<publicmethods visible="yes" title=""/>
|
||||
<publicstaticmethods visible="yes" title=""/>
|
||||
<publicattributes visible="yes" title=""/>
|
||||
<publicstaticattributes visible="yes" title=""/>
|
||||
<protectedtypes visible="yes" title=""/>
|
||||
<protectedslots visible="yes" title=""/>
|
||||
<protectedmethods visible="yes" title=""/>
|
||||
<protectedstaticmethods visible="yes" title=""/>
|
||||
<protectedattributes visible="yes" title=""/>
|
||||
<protectedstaticattributes visible="yes" title=""/>
|
||||
<packagetypes visible="yes" title=""/>
|
||||
<packagemethods visible="yes" title=""/>
|
||||
<packagestaticmethods visible="yes" title=""/>
|
||||
<packageattributes visible="yes" title=""/>
|
||||
<packagestaticattributes visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
<privatetypes visible="yes" title=""/>
|
||||
<privateslots visible="yes" title=""/>
|
||||
<privatemethods visible="yes" title=""/>
|
||||
<privatestaticmethods visible="yes" title=""/>
|
||||
<privateattributes visible="yes" title=""/>
|
||||
<privatestaticattributes visible="yes" title=""/>
|
||||
<friends visible="yes" title=""/>
|
||||
<related visible="yes" title="" subtitle=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<enums visible="yes" title="Member Enums"/>
|
||||
<services visible="yes" title=""/>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<constructors visible="yes" title="Constructors and Destructors"/>
|
||||
<functions visible="yes" title="Member Functions"/>
|
||||
<related visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<allmemberslink visible="yes"/>
|
||||
<authorsection visible="yes"/>
|
||||
</class>
|
||||
|
||||
<!-- Layout definition for a namespace page -->
|
||||
<namespace>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<memberdecl>
|
||||
<nestednamespaces visible="yes" title=""/>
|
||||
<constantgroups visible="yes" title=""/>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<concepts visible="yes" title=""/>
|
||||
<structs visible="yes" title=""/>
|
||||
<exceptions visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<authorsection visible="yes"/>
|
||||
</namespace>
|
||||
|
||||
<!-- Layout definition for a concept page -->
|
||||
<concept>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<includes visible="$SHOW_HEADERFILE"/>
|
||||
<definition visible="yes" title=""/>
|
||||
<authorsection visible="yes"/>
|
||||
</concept>
|
||||
|
||||
<!-- Layout definition for a file page -->
|
||||
<file>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<includes visible="$SHOW_INCLUDE_FILES"/>
|
||||
<includegraph visible="yes"/>
|
||||
<includedbygraph visible="yes"/>
|
||||
<sourcelink visible="yes"/>
|
||||
<memberdecl>
|
||||
<interfaces visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<structs visible="yes" title=""/>
|
||||
<exceptions visible="yes" title=""/>
|
||||
<namespaces visible="yes" title=""/>
|
||||
<concepts visible="yes" title=""/>
|
||||
<constantgroups visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<authorsection/>
|
||||
</file>
|
||||
|
||||
<!-- Layout definition for a group page -->
|
||||
<group>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<groupgraph visible="yes"/>
|
||||
<memberdecl>
|
||||
<nestedgroups visible="yes" title=""/>
|
||||
<modules visible="yes" title=""/>
|
||||
<dirs visible="yes" title=""/>
|
||||
<files visible="yes" title=""/>
|
||||
<namespaces visible="yes" title=""/>
|
||||
<concepts visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<enumvalues visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<signals visible="yes" title=""/>
|
||||
<publicslots visible="yes" title=""/>
|
||||
<protectedslots visible="yes" title=""/>
|
||||
<privateslots visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<friends visible="yes" title=""/>
|
||||
<membergroups visible="yes"/>
|
||||
</memberdecl>
|
||||
<memberdef>
|
||||
<pagedocs/>
|
||||
<inlineclasses visible="yes" title=""/>
|
||||
<defines visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<sequences visible="yes" title=""/>
|
||||
<dictionaries visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<enumvalues visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<signals visible="yes" title=""/>
|
||||
<publicslots visible="yes" title=""/>
|
||||
<protectedslots visible="yes" title=""/>
|
||||
<privateslots visible="yes" title=""/>
|
||||
<events visible="yes" title=""/>
|
||||
<properties visible="yes" title=""/>
|
||||
<friends visible="yes" title=""/>
|
||||
</memberdef>
|
||||
<authorsection visible="yes"/>
|
||||
</group>
|
||||
|
||||
<!-- Layout definition for a C++20 module page -->
|
||||
<module>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<exportedmodules visible="yes"/>
|
||||
<memberdecl>
|
||||
<concepts visible="yes" title=""/>
|
||||
<classes visible="yes" title=""/>
|
||||
<enums visible="yes" title=""/>
|
||||
<typedefs visible="yes" title=""/>
|
||||
<functions visible="yes" title=""/>
|
||||
<variables visible="yes" title=""/>
|
||||
<membergroups visible="yes" title=""/>
|
||||
</memberdecl>
|
||||
<memberdecl>
|
||||
<files visible="yes"/>
|
||||
</memberdecl>
|
||||
</module>
|
||||
|
||||
<!-- Layout definition for a directory page -->
|
||||
<directory>
|
||||
<briefdescription visible="no"/>
|
||||
<detaileddescription visible="yes" title=""/>
|
||||
<directorygraph visible="yes"/>
|
||||
<memberdecl>
|
||||
<dirs visible="yes"/>
|
||||
<files visible="yes"/>
|
||||
</memberdecl>
|
||||
</directory>
|
||||
</doxygenlayout>
|
||||
@@ -0,0 +1,21 @@
|
||||
# JUCE's Doxygen documentation
|
||||
|
||||
JUCE's doxygen setup aims to be pretty vanilla Doxygen and can be run like so:
|
||||
|
||||
```
|
||||
doxygen Doxyfile
|
||||
```
|
||||
|
||||
However, `build.py` can be run to generate additional documentation indexes for JUCE modules:
|
||||
|
||||
```
|
||||
python3 build.py
|
||||
```
|
||||
|
||||
## Styles
|
||||
|
||||
`HTML_STYLESHEET` is left empty, meaning that Doxygen will generate its default styles.
|
||||
|
||||
JUCE specific overrides then live in `css/doxygen-juce-overrides.css`.
|
||||
|
||||
Code highlighting is done with [highlight.js](https://highlightjs.org).
|
||||
@@ -0,0 +1,183 @@
|
||||
from pathlib import Path
|
||||
import argparse
|
||||
import os
|
||||
import subprocess
|
||||
import xml.etree.ElementTree as ET
|
||||
from xml.etree.ElementTree import Element
|
||||
import re
|
||||
|
||||
def get_module_description(module_header: Path) -> str:
|
||||
with open(module_header, 'r') as f:
|
||||
content = f.read()
|
||||
declaration = content[content.find('BEGIN_JUCE_MODULE_DECLARATION'):content.find('END_JUCE_MODULE_DECLARATION')]
|
||||
for line in map(lambda x: x.strip(), declaration.split("\n")):
|
||||
if line.startswith('description:'):
|
||||
return line.removeprefix('description:').strip()
|
||||
|
||||
def createContentDict() -> dict:
|
||||
return {
|
||||
'classes/structs': {},
|
||||
'functions': {},
|
||||
'typedefs': {},
|
||||
'macros': {},
|
||||
'enums': {},
|
||||
'dirs': {}
|
||||
}
|
||||
|
||||
def getContentObjectFromPath(root_object: dict, location: str) -> dict:
|
||||
path_components = Path(location).parts
|
||||
contents = root_object[path_components[0]]
|
||||
for path_component in path_components[1:-1]:
|
||||
if not (path_component in contents['dirs']):
|
||||
contents['dirs'][path_component] = createContentDict()
|
||||
contents = contents['dirs'][path_component]
|
||||
return contents
|
||||
|
||||
def parseNamespaceXml(root_object, filename):
|
||||
element = ET.parse(f'xml/{filename}').getroot()
|
||||
|
||||
for class_reference in element.findall('.//innerclass'):
|
||||
refid = class_reference.attrib['refid']
|
||||
html_filename = f'{refid}.html'
|
||||
if not Path(f'doc/{html_filename}').is_file():
|
||||
continue
|
||||
xml_path = Path(f'xml/{refid}.xml')
|
||||
if not xml_path.is_file():
|
||||
continue
|
||||
class_element = ET.parse(xml_path).getroot()
|
||||
location = class_element.find('.//location').attrib['file']
|
||||
contents = getContentObjectFromPath(root_object, location)
|
||||
contents['classes/structs'][class_reference.text.removeprefix('juce::')] = {
|
||||
'url': f'./{html_filename}'
|
||||
}
|
||||
|
||||
namespace_def_id = element.find('.//compounddef').attrib['id']
|
||||
namespace_id_prefix = f'{namespace_def_id}_1'
|
||||
|
||||
for kind, contents_key in (('function', 'functions'), ('typedef', 'typedefs'), ('enum', 'enums')):
|
||||
for reference in element.findall(f".//memberdef[@kind='{kind}']"):
|
||||
desc = reference.find('briefdescription')
|
||||
if (len(desc) == 0) and (not desc.text.strip()):
|
||||
continue
|
||||
ref_id = reference.attrib['id']
|
||||
if not ref_id.startswith(namespace_id_prefix):
|
||||
continue
|
||||
name = reference.find('.//qualifiedname').text.removeprefix('juce::')
|
||||
if re.search(r'operator[+\-*/=!<>]*$', name):
|
||||
continue
|
||||
anchor = ref_id.removeprefix(namespace_id_prefix)
|
||||
location = reference.find('.//location').attrib['file']
|
||||
contents = getContentObjectFromPath(modules, location)
|
||||
contents[contents_key][name] = {
|
||||
'url': f'./{namespace_def_id}.html#{anchor}'
|
||||
}
|
||||
|
||||
def parseFileXml(root_object, filename):
|
||||
element = ET.parse(f'xml/{filename}').getroot()
|
||||
compounddef_id = element.find('compounddef').attrib['id']
|
||||
def_reference_link_prefix = compounddef_id + '_1'
|
||||
for def_reference in element.findall(".//memberdef[@kind='define']"):
|
||||
def_id = def_reference.attrib['id']
|
||||
if not def_id.startswith(def_reference_link_prefix):
|
||||
continue
|
||||
def_desc = def_reference.find('briefdescription')
|
||||
if (len(def_desc) == 0) and (not def_desc.text.strip()):
|
||||
continue
|
||||
html_filename = f'{compounddef_id}.html'
|
||||
if not (Path('doc') / html_filename).exists():
|
||||
continue
|
||||
location = def_reference.find('.//location').attrib['file']
|
||||
contents = getContentObjectFromPath(root_object, location)
|
||||
anchor = def_id.removeprefix(def_reference_link_prefix)
|
||||
contents['macros'][def_reference.find('name').text] = {
|
||||
'url': f'./{html_filename}#{anchor}',
|
||||
}
|
||||
|
||||
def write_module_html_recursive(parent: Element, data: dict):
|
||||
for section_key, section_contents in data.items():
|
||||
if section_key in ('dirs', 'description'):
|
||||
continue
|
||||
if not section_contents:
|
||||
continue
|
||||
#ET.SubElement(parent, 'span', {'class': 'juce-module-contents-title'}).text = section_key
|
||||
section_list = ET.SubElement(parent, 'ul', {'class': 'juce-module-class-list'})
|
||||
for section_item_key, section_item_contents in sorted(section_contents.items()):
|
||||
item = ET.SubElement(section_list, 'li', {'class': 'juce-module-class-item'})
|
||||
ET.SubElement(item, 'a', {'href': section_item_contents['url'], 'class': 'juce-module-class-link'}).text = section_item_key
|
||||
if data['dirs']:
|
||||
dir_table = ET.SubElement(parent, 'table', {'class': 'juce-module-dir-table'})
|
||||
for dir_key, dir_contents in sorted(data['dirs'].items()):
|
||||
row = ET.SubElement(dir_table, 'tr', {'class': 'juce-module-dir-row'})
|
||||
ET.SubElement(row, 'td', {'class': 'juce-module-dir-name'}).text = dir_key
|
||||
content = ET.SubElement(row, 'td', {'class': 'juce-module-dir-contents'})
|
||||
write_module_html_recursive(content, dir_contents)
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--sitemap-url', help='The Doxygen sitemap configuration variable')
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.sitemap_url:
|
||||
os.environ['JUCE_SITEMAP_URL']=args.sitemap_url
|
||||
|
||||
print('--- Running Doxygen')
|
||||
subprocess.run("doxygen", shell=True, check=True)
|
||||
|
||||
print('--- Parsing module headers')
|
||||
modules_dir = Path('../../modules')
|
||||
assert modules_dir.is_dir()
|
||||
modules = {}
|
||||
for module_name in os.listdir(modules_dir):
|
||||
module_dir = modules_dir / module_name
|
||||
if not module_dir.is_dir():
|
||||
continue
|
||||
module_header = module_dir / f'{module_name}.h'
|
||||
if not module_header.is_file():
|
||||
continue
|
||||
modules[module_name] = createContentDict()
|
||||
modules[module_name]['description'] = get_module_description(module_header)
|
||||
|
||||
print('--- Parsing Doxygen XML')
|
||||
for xml_filename in os.listdir('xml'):
|
||||
if xml_filename.startswith('namespacejuce'):
|
||||
parseNamespaceXml(modules, xml_filename)
|
||||
elif xml_filename.startswith('juce__'):
|
||||
# There are no macros in the namespace XML so we need to get them separately
|
||||
parseFileXml(modules, xml_filename)
|
||||
|
||||
print('--- Creating JUCE Module HTML')
|
||||
|
||||
module_icon = ET.Element('svg', {'fill': '#000000', 'viewBox': '0 0 56 56', 'class': 'juce-module-icon'})
|
||||
ET.SubElement(module_icon, 'path', {'d': 'M 28.0000 26.6406 L 50.0783 14.1016 C 49.7264 13.75 49.3045 13.4688 48.7890 13.1875 L 32.2657 3.7657 C 30.8126 2.9453 29.4063 2.5000 28.0000 2.5000 C 26.5938 2.5000 25.1875 2.9453 23.7344 3.7657 L 7.2110 13.1875 C 6.6954 13.4688 6.2735 13.75 5.9219 14.1016 Z M 26.4063 53.5 L 26.4063 29.4532 L 4.3985 16.8906 C 4.2813 17.4063 4.2110 17.9688 4.2110 18.6719 L 4.2110 36.9297 C 4.2110 40.3281 5.4063 41.5938 7.5860 42.8360 L 25.9375 53.2891 C 26.1016 53.3828 26.2422 53.4532 26.4063 53.5 Z M 29.5938 53.5 C 29.7579 53.4532 29.8985 53.3828 30.0626 53.2891 L 48.4141 42.8360 C 50.5938 41.5938 51.7890 40.3281 51.7890 36.9297 L 51.7890 18.6719 C 51.7890 17.9688 51.7189 17.4063 51.6018 16.8906 L 29.5938 29.4532 Z'})
|
||||
|
||||
main_div = ET.Element('div', {'class': 'juce-modules-continer'})
|
||||
|
||||
toc_div = ET.SubElement(main_div, 'div', {'class': 'juce-module-toc-container'})
|
||||
ET.SubElement(toc_div, 'p', {'class': 'juce-module-toc-desc'}).text = "Here is a summary of the JUCE modules. To search absolutely everything please use the search bar."
|
||||
toc_table = ET.SubElement(toc_div, 'table', {'class': 'juce-module-toc-table'})
|
||||
for key, contents in sorted(modules.items()):
|
||||
toc_row = ET.SubElement(toc_table, 'tr', {'class': 'juce-module-toc-row'})
|
||||
module_toc_name = ET.SubElement(toc_row, 'td', {'class': 'juce-module-toc-module-name'})
|
||||
ET.SubElement(module_toc_name, 'a', {'href': f'#{key}', 'class': 'juce-module-toc-module-name-link'}).text = key
|
||||
ET.SubElement(toc_row, 'td', {'class': 'juce-module-toc-module-decs'}).text = contents['description']
|
||||
ET.SubElement(main_div, 'div', {'class': 'juce-module-toc-divider'})
|
||||
|
||||
for key, contents in sorted(modules.items()):
|
||||
module_div = ET.SubElement(main_div, 'div', {'class': 'juce-module'})
|
||||
module_header_div = ET.SubElement(module_div, 'div', {'class': 'juce-module-header'})
|
||||
module_title_div = ET.SubElement(module_header_div, 'div', {'class': 'juce-module-title'})
|
||||
module_title_div.append(module_icon)
|
||||
ET.SubElement(module_title_div, 'span', {'id': key, 'class': 'juce-module-name'}).text = key
|
||||
ET.SubElement(module_header_div, 'span', {'class': 'juce-module-desc'}).text = contents['description']
|
||||
module_contents_div = ET.SubElement(module_div, 'div', {'class': 'juce-module-contents'})
|
||||
write_module_html_recursive(module_contents_div, contents)
|
||||
|
||||
print('--- Updating Doxygen HTML')
|
||||
html = ET.tostring(main_div, encoding='utf-8', method='html').decode('utf-8')
|
||||
with open('doc/index.html', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
content = content.replace('JUCE Documentation', 'JUCE Modules')
|
||||
key = '<div class="contents">'
|
||||
index = content.index(key) + len(key)
|
||||
content = content[:index] + html + content[index:]
|
||||
with open('doc/index.html', 'w', encoding='utf-8') as f:
|
||||
f.write(content)
|
||||
@@ -0,0 +1,249 @@
|
||||
/*
|
||||
Modified Doxygen Theme for JUCE
|
||||
|
||||
Don't edit the main doxygen-1.14.css file, edit this instead.
|
||||
|
||||
This file is included after the base theme to override specific styles.
|
||||
*/
|
||||
|
||||
/* Use Open Sans everywhere, Inconsalata for code */
|
||||
html,
|
||||
body {
|
||||
--font-family-normal: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-monospace: "Inconsolata", monospace;
|
||||
--font-family-nav: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-title: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-toc: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-search: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
--font-family-icon: Arial, Helvetica;
|
||||
--font-family-tooltip: "Open Sans", Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* 14px is a good readable minimum */
|
||||
body,
|
||||
table,
|
||||
div,
|
||||
p,
|
||||
dl {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* slightly larger text blocks for better readability */
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* nicer code blocks */
|
||||
pre {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
pre code {
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: var(--font-family-monospace);
|
||||
}
|
||||
|
||||
/* all links should display underline on hover */
|
||||
a:hover {
|
||||
color: var(--page-link-color);
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* make sure we aren't hugging the sides for readablity */
|
||||
#doc-content {
|
||||
margin: 0 1.5em;
|
||||
}
|
||||
|
||||
#main-nav {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/* Readability is TERRIBLE with unlimited widths. UX 101 */
|
||||
div.textblock {
|
||||
max-width: 750px;
|
||||
}
|
||||
|
||||
div.textblock h2 {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
/* Tame the search UX */
|
||||
#MSearchField {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.SRPage {
|
||||
margin: 0.5em;
|
||||
}
|
||||
|
||||
.SRPage .SREntry {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.SRChildren {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#navrow1 .tablist>li:last-child {
|
||||
margin-top: 0.3em;
|
||||
}
|
||||
|
||||
/* Give the header a bit of room */
|
||||
div.header {
|
||||
background-color: transparent;
|
||||
border-bottom: none;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
/* Align this sub-nav with the heading */
|
||||
div.summary {
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
/* Breadcrumbs aren't useful, so lets hide them */
|
||||
div#nav-path {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hide the unnecessarily noisy "Detailed Description" header */
|
||||
h2.groupheader#header-details {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* remove noisy extra lines in headers */
|
||||
td h2.groupheader {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* Doxygen uses monospace for headings, which is rough on scannability.
|
||||
It's also using 1990s style css with tables and "float left" for layout
|
||||
*/
|
||||
h2.memtitle {
|
||||
font-family: var(--font-family-normal);
|
||||
font-size: 20px;
|
||||
font-weight: 300;
|
||||
float: none;
|
||||
width: max-content;
|
||||
/* this is what they wanted vs. float */
|
||||
}
|
||||
|
||||
/* limit the width of member lists for basic readability */
|
||||
div.memitem {
|
||||
max-width: 750px;
|
||||
}
|
||||
|
||||
/* member declarations should also not be monospace */
|
||||
.memberdecls tr[class^='memitem'] {
|
||||
font-family: var(--font-family-normal);
|
||||
}
|
||||
|
||||
/* better spacing around section headers */
|
||||
tr.heading h2 {
|
||||
margin-top: 2em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* sane line height on class index */
|
||||
.classindex dd {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
/* descriptions should be readable */
|
||||
div.contents div.textblock p {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* get rid of crufty borders and background colors */
|
||||
.memItemLeft,
|
||||
.memItemRight,
|
||||
memTemplParams {
|
||||
background-color: transparent;
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
border-bottom: none;
|
||||
padding: 0.6em 0 0 0;
|
||||
}
|
||||
|
||||
.mdescLeft,
|
||||
.mdescRight {
|
||||
border-right: none;
|
||||
border-left: none;
|
||||
padding: 0 0 0.6em 0;
|
||||
}
|
||||
|
||||
tr[class^='memdesc'] {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
/* tame crufty borders on member lists */
|
||||
.memproto,
|
||||
dl.reflist dt {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* chill out on the 1990s crufty rolodex card borders */
|
||||
html {
|
||||
--memdef-border-color: #a8b8d949;
|
||||
}
|
||||
|
||||
/* JUCE MODULES */
|
||||
.juce-modules-continer {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-toc-table {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-toc-divider {
|
||||
border-bottom: 1px solid;
|
||||
margin-top: 2em;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.juce-module-toc-module-name {
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.juce-module-desc {
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-contents {
|
||||
margin-top: 1em;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.juce-module-title {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.juce-module-icon {
|
||||
height: 1.5em;
|
||||
margin-right: 0.75em;
|
||||
vertical-align: middle;
|
||||
fill: var(--page-foreground-color);
|
||||
}
|
||||
|
||||
.juce-module-name {
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.juce-module-dir-name {
|
||||
font-size: 1.1em;
|
||||
font-weight: bold;
|
||||
vertical-align: top;
|
||||
padding-right: 1em;
|
||||
}
|
||||
|
||||
.juce-module-class-list {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
/* ==========================================================================
|
||||
juce.com shared site chrome (header + footer).
|
||||
Mirrors the juce.com WordPress block theme; see the theme repo for the
|
||||
canonical values. Scoped under .juce-site-chrome so it cannot leak into
|
||||
app or Tailwind styles. Fonts: Open Sans / Source Sans Pro, loaded by the
|
||||
apps' layouts.
|
||||
========================================================================== */
|
||||
|
||||
.juce-site-chrome {
|
||||
/* design tokens (theme.json palette) */
|
||||
--juce-base: #ffffff;
|
||||
--juce-contrast: #231f20;
|
||||
--juce-neutral-900: #262626;
|
||||
--juce-neutral-700: #52565a;
|
||||
--juce-primary: #f09f53;
|
||||
--juce-secondary: #8dc63f;
|
||||
--juce-lime: #add14c;
|
||||
--juce-yellow: #ecdc13;
|
||||
--juce-red: #e74253;
|
||||
|
||||
font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
letter-spacing: normal;
|
||||
color: var(--juce-base);
|
||||
box-sizing: border-box;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.juce-site-chrome *, .juce-site-chrome *::before, .juce-site-chrome *::after { box-sizing: inherit; }
|
||||
.juce-site-chrome ul { list-style: none; margin: 0; padding: 0; }
|
||||
.juce-site-chrome a { text-decoration: none; color: inherit; }
|
||||
.juce-site-chrome a:visited { color: inherit; }
|
||||
.juce-site-chrome img { max-width: 100%; }
|
||||
.juce-site-chrome button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
|
||||
/* Host pages (e.g. Doxygen) set fonts on bare element selectors; restore inheritance inside the chrome. */
|
||||
.juce-site-chrome :where(div, p, ul, li, a, span) { font: inherit; }
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Header
|
||||
-------------------------------------------------------------------------- */
|
||||
.site-header { background-color: var(--juce-neutral-900); color: var(--juce-base); padding: 0.5rem 1.5rem; }
|
||||
.site-header__row {
|
||||
max-width: 1280px; margin: 0 auto; min-height: 69px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
flex-wrap: nowrap; gap: 1rem; min-width: 0;
|
||||
}
|
||||
.site-header__logo img { width: 160px; height: auto; display: block; }
|
||||
.site-header__right { display: flex; align-items: center; flex-wrap: nowrap; gap: 1rem; min-width: 0; }
|
||||
|
||||
.site-header .wp-block-navigation { display: flex; align-items: center; }
|
||||
.site-header .wp-block-navigation__container { display: flex; align-items: center; gap: 1.5rem; }
|
||||
.site-header .wp-block-navigation-item { position: relative; }
|
||||
.site-header .wp-block-navigation-item {
|
||||
display: flex; align-items: center; gap: 0.25em;
|
||||
}
|
||||
.site-header .wp-block-navigation-item__content {
|
||||
display: inline-flex; align-items: center;
|
||||
font-size: 16px; line-height: 1.6; color: var(--juce-base);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.site-header .wp-block-navigation-item__content:hover,
|
||||
.site-header .wp-block-navigation-item__content:focus { color: var(--juce-lime); }
|
||||
.site-header .wp-block-navigation__submenu-icon { display: inline-flex; align-items: center; color: var(--juce-base); }
|
||||
.site-header .wp-block-navigation__submenu-icon svg {
|
||||
display: block;
|
||||
width: 0.6em; height: 0.6em; /* WordPress renders the caret at 0.6em */
|
||||
transform: translateY(1.2px); /* and baseline-aligns it slightly below centre */
|
||||
}
|
||||
|
||||
/* dropdowns (desktop) */
|
||||
.site-header .wp-block-navigation__submenu-container {
|
||||
position: absolute; top: 100%; left: -1.25rem; z-index: 100;
|
||||
min-width: 200px; padding: 0.6rem 0;
|
||||
background: var(--juce-neutral-900); border-radius: 0 0 8px 8px;
|
||||
display: block; visibility: hidden; opacity: 0; transition: opacity 0.15s ease;
|
||||
}
|
||||
.site-header .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
|
||||
.site-header .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
|
||||
visibility: visible; opacity: 1;
|
||||
}
|
||||
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
|
||||
display: block; padding: 0.5rem 1.25rem; white-space: nowrap;
|
||||
}
|
||||
.site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #333333; color: var(--juce-base); }
|
||||
|
||||
/* account icon + CTA */
|
||||
.site-header .header-account { color: var(--juce-base); display: inline-flex; margin-left: 1.25rem; }
|
||||
.site-header .header-account:hover { color: var(--juce-lime); }
|
||||
.site-header .header-account svg { display: block; }
|
||||
.site-header__cta {
|
||||
display: inline-block; margin-left: 0.75rem; padding: 0.55rem 1.25rem;
|
||||
line-height: 1.6;
|
||||
background: var(--juce-secondary); color: var(--juce-base);
|
||||
border-radius: 999px; font-size: 0.875rem; font-weight: 600;
|
||||
letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
|
||||
}
|
||||
.site-header__cta:hover { background: var(--juce-lime); color: var(--juce-contrast); }
|
||||
|
||||
/* burger + overlay (below 1120px) */
|
||||
.site-header .wp-block-navigation__responsive-container-open { display: none; padding: 0; width: 24px; height: 24px; }
|
||||
@media (max-width: 899px) {
|
||||
.site-header .wp-block-navigation__responsive-container-open { display: inline-flex; }
|
||||
.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
|
||||
.site-header .wp-block-navigation__responsive-container.is-menu-open {
|
||||
position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
|
||||
background: var(--juce-neutral-900); padding: 4rem 1.5rem 2rem;
|
||||
}
|
||||
.site-header .is-menu-open .wp-block-navigation__container {
|
||||
flex-direction: column; align-items: flex-start; gap: 0.5rem;
|
||||
}
|
||||
.site-header .is-menu-open .wp-block-navigation__submenu-container {
|
||||
position: static; visibility: visible; opacity: 1; min-width: 0;
|
||||
padding: 0 0 0 1.5rem; border-radius: 0;
|
||||
}
|
||||
.site-header .is-menu-open .wp-block-navigation-item { display: block; }
|
||||
.site-header .is-menu-open .wp-block-navigation-item__content { display: block; padding: 8px 0; }
|
||||
.site-header .is-menu-open .wp-block-navigation__submenu-icon { display: none; }
|
||||
.site-header .wp-block-navigation__responsive-container-close {
|
||||
position: absolute; top: 1rem; right: 1.5rem; padding: 0; width: 24px; height: 24px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 900px) {
|
||||
.site-header .wp-block-navigation__responsive-container-close { display: none; }
|
||||
}
|
||||
html.juce-menu-open, html.juce-menu-open body { overflow: hidden; }
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
Footer
|
||||
-------------------------------------------------------------------------- */
|
||||
.site-footer { font-size: 16px; }
|
||||
.site-sitemap {
|
||||
background-image:
|
||||
linear-gradient(rgba(141, 198, 63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MxIi8+CiAgICAgIDxwYXRoIGQ9Ik0xMjYuNDUsMTY2YTYsNiwwLDAsMC03LjY4LTcuOTJjLTIxLjgxLDguNjYtNDMuNTcsMTgtNjUuMjgsMjkuNzdhMTQuNTcsMTQuNTcsMCwwLDAtNC45MiwyMS4yNiwxMTUuOSwxMTUuOSwwLDAsMCwzMS41NSwzMEExNC41NywxNC41NywwLDAsMCwxMDEuODksMjMxQzEwOC44NCwyMDgsMTE3LjQyLDE4Ni43NSwxMjYuNDUsMTY2WiIgZmlsbD0iI2FkZDE0YyIvPgogICAgICA8cGF0aCBkPSJNMTU4LjY3LDEyMC4xMmE2LDYsMCwwLDAsNy42OCw3LjkxYzIxLjkyLTguNyw0My43OS0xOC4xNCw2NS42Mi0zMEExNC41OCwxNC41OCwwLDAsMCwyMzcsNzdhMTE1LjgyLDExNS44MiwwLDAsMC0zMS40OS0zMC44NCwxNC41NywxNC41NywwLDAsMC0yMS45Miw4QzE3Ni41Niw3Ny40NiwxNjcuODQsOTkuMDUsMTU4LjY3LDEyMC4xMloiIGZpbGw9IiNlNzQyNTMiLz4KICAgICAgPHBhdGggZD0iTTExNC44MiwxMzdjLTIxLjY0LTkuMzctNDMuNzYtMTguMTktNjcuNy0yNS4xMWExNC42MSwxNC42MSwwLDAsMC0xOC40OSwxMS42MywxMTYuMTEsMTE2LjExLDAsMCwwLDEuMjEsNDMuNjUsMTQuNTYsMTQuNTYsMCwwLDAsMjEsOS41OGMyMS4zLTExLjI1LDQyLjU3LTIwLjMzLDYzLjc5LTI4LjczQTYsNiwwLDAsMCwxMTQuODIsMTM3WiIgZmlsbD0iIzAxYjY5OSIvPgogICAgPC9nPgogIDwvZz4KPC9zdmc+Cg==");
|
||||
background-size: auto, 700px auto;
|
||||
background-position: center, right -120px center;
|
||||
background-repeat: no-repeat;
|
||||
background-color: var(--juce-secondary);
|
||||
padding: 3rem 1.5rem;
|
||||
}
|
||||
.site-sitemap__columns {
|
||||
max-width: 1280px; margin: 0 auto;
|
||||
display: flex; gap: 0 2rem;
|
||||
}
|
||||
.site-sitemap__column { min-width: 0; }
|
||||
@media (max-width: 767px) {
|
||||
.site-sitemap__columns { flex-direction: column; }
|
||||
.site-sitemap__column { flex-basis: auto !important; }
|
||||
}
|
||||
.site-sitemap h3 {
|
||||
color: rgba(0, 0, 0, 0.4); border-left: 8px solid rgba(0, 0, 0, 0.2);
|
||||
padding-left: 8px; margin: 25px 0 10px;
|
||||
font-family: "Source Sans 3", "Source Sans Pro", "Open Sans", sans-serif;
|
||||
font-size: 1.5rem; font-weight: 500; line-height: 1.2;
|
||||
}
|
||||
.site-sitemap li { margin: 0 0 0.35rem; line-height: 1.6; }
|
||||
.site-sitemap__column > h3:first-child,
|
||||
.site-sitemap__column > div:first-child > h3:first-child { margin-top: 0; }
|
||||
.site-sitemap a { line-height: 1.6; }
|
||||
.site-sitemap a { color: var(--juce-base); }
|
||||
.site-sitemap a:hover { color: var(--juce-yellow); }
|
||||
|
||||
.site-footer-bar { background: var(--juce-neutral-900); padding: 1.5rem; }
|
||||
.site-footer-bar {
|
||||
display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
|
||||
max-width: 1280px; margin: 0 auto; box-sizing: content-box;
|
||||
}
|
||||
.site-footer-bar__social { justify-self: start; }
|
||||
.site-footer-bar__logo { justify-self: center; }
|
||||
.site-footer-bar__copyright { justify-self: end; }
|
||||
.site-footer-bar__social { display: flex; gap: 20px; }
|
||||
.site-footer-bar__social a {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
width: 36px; height: 36px; border-radius: 50%;
|
||||
background: var(--juce-secondary); color: var(--juce-base);
|
||||
}
|
||||
.site-footer-bar__social svg { width: 24px; height: 24px; }
|
||||
.site-footer-bar__social a:hover { background: var(--juce-red); }
|
||||
.site-footer-bar__logo img { width: 140px; height: auto; display: block; }
|
||||
.site-footer-bar__copyright { margin: 0; font-size: 0.875rem; color: var(--juce-base); }
|
||||
@media (max-width: 600px) {
|
||||
.site-footer-bar { justify-content: center; text-align: center; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
||||
Theme: Tokyo-night-Dark
|
||||
origin: https://github.com/enkia/tokyo-night-vscode-theme
|
||||
Description: Original highlight.js style
|
||||
Author: (c) Henri Vandersleyen <hvandersleyen@gmail.com>
|
||||
License: see project LICENSE
|
||||
Touched: 2022
|
||||
*/.hljs-comment,.hljs-meta{color:#565f89}.hljs-deletion,.hljs-doctag,.hljs-regexp,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-tag,.hljs-template-tag,.hljs-variable.language_{color:#f7768e}.hljs-link,.hljs-literal,.hljs-number,.hljs-params,.hljs-template-variable,.hljs-type,.hljs-variable{color:#ff9e64}.hljs-attribute,.hljs-built_in{color:#e0af68}.hljs-keyword,.hljs-property,.hljs-subst,.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#7dcfff}.hljs-selector-tag{color:#73daca}.hljs-addition,.hljs-bullet,.hljs-quote,.hljs-string,.hljs-symbol{color:#9ece6a}.hljs-code,.hljs-formula,.hljs-section{color:#7aa2f7}.hljs-attr,.hljs-char.escape_,.hljs-keyword,.hljs-name,.hljs-operator{color:#bb9af7}.hljs-punctuation{color:#c0caf5}.hljs{background:#1a1b26;color:#9aa5ce}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}
|
||||
@@ -0,0 +1,4 @@
|
||||
<html>
|
||||
<p>The requested resource is not available.</p>
|
||||
<p>Please contact info@juce.com if you were expecting to find something here.</p>
|
||||
</html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,58 @@
|
||||
<!-- HTML footer for doxygen 1.14.0-->
|
||||
<!-- start footer part -->
|
||||
<!--BEGIN GENERATE_TREEVIEW-->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
$navpath
|
||||
<li class="footer">$generatedby <a href="https://www.doxygen.org/index.html"><img class="footer" src="$relpath^doxygen.svg" width="104" height="31" alt="doxygen"/></a> $doxygenversion </li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--END GENERATE_TREEVIEW-->
|
||||
<!--BEGIN !GENERATE_TREEVIEW-->
|
||||
</div><!-- doc-content -->
|
||||
<!--END !GENERATE_TREEVIEW-->
|
||||
|
||||
<footer class="juce-site-chrome site-footer">
|
||||
<div class="site-sitemap">
|
||||
<div class="site-sitemap__columns">
|
||||
<div class="site-sitemap__column" style="flex-basis:25%">
|
||||
<h3>Purchase</h3><ul><li><a href="https://juce.com/get-juce/">Get JUCE</a></li></ul>
|
||||
<h3>Discover</h3><ul>
|
||||
<li><a href="https://juce.com/whats-new/">What’s New in JUCE</a></li>
|
||||
<li><a href="https://juce.com/features/">Features</a></li>
|
||||
<li><a href="https://juce.com/made-with-juce/">Made with JUCE</a></li>
|
||||
<li><a href="https://juce.com/category/blog/">Blog</a></li></ul>
|
||||
<h3>Learn</h3><ul>
|
||||
<li><a href="https://juce.com/learn/documentation/">Documentation</a></li>
|
||||
<li><a href="https://juce.com/learn/tutorials/">Tutorials</a></li>
|
||||
<li><a href="https://juce.com/resources/">Resources</a></li></ul>
|
||||
</div>
|
||||
<div class="site-sitemap__column" style="flex-basis:41.67%">
|
||||
<h3>Support</h3><ul>
|
||||
<li><a href="https://forum.juce.com/">JUCE Forum</a></li>
|
||||
<li><a href="https://juce.com/newsletter/">Newsletter</a></li></ul>
|
||||
<h3>About</h3><ul>
|
||||
<li><a href="https://juce.com/contact-us/">Contact Us</a></li>
|
||||
<li><a href="https://juce.com/security/">Security</a></li>
|
||||
<li><a href="https://juce.com/juce-legal/">JUCE Legal</a></li>
|
||||
<li><a href="https://juce.com/legal/juce-9-licence/">JUCE 9 EULA</a></li>
|
||||
<li><a href="https://juce.com/get-juce/#licensing-faq">JUCE Licensing FAQ</a></li></ul>
|
||||
<h3>Events</h3><ul>
|
||||
<li><a href="https://audio.dev">Audio Developer Conference</a></li></ul>
|
||||
</div>
|
||||
<div class="site-sitemap__column" style="flex-basis:33.33%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="site-footer-bar">
|
||||
<ul class="site-footer-bar__social" aria-label="JUCE on social media">
|
||||
<li><a href="https://github.com/juce-framework/JUCE" aria-label="GitHub"><svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg></a></li>
|
||||
<li><a href="https://www.youtube.com/c/JUCElibrary" aria-label="YouTube"><svg viewBox="0 0 16 16" width="16" height="16" fill="currentColor" aria-hidden="true"><path d="M15.68 4.06a2 2 0 0 0-1.42-1.42C13 2.3 8 2.3 8 2.3s-5 0-6.26.34A2 2 0 0 0 .32 4.06 21 21 0 0 0 0 8a21 21 0 0 0 .32 3.94 2 2 0 0 0 1.42 1.42C3 13.7 8 13.7 8 13.7s5 0 6.26-.34a2 2 0 0 0 1.42-1.42A21 21 0 0 0 16 8a21 21 0 0 0-.32-3.94zM6.4 10.6V5.4L10.6 8l-4.2 2.6z"/></svg></a></li>
|
||||
<li><a href="https://forum.juce.com/" aria-label="JUCE Forum"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg></a></li>
|
||||
</ul>
|
||||
<a class="site-footer-bar__logo" href="https://juce.com" aria-label="JUCE home"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iYiIgZGF0YS1uYW1lPSJMYXllciAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIHZpZXdCb3g9IjAgMCAyNjYuODcgMTE1LjUiPgogIDxnIGlkPSJjIiBkYXRhLW5hbWU9IkxheWVyIDEiPgogICAgPGc+CiAgICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Ik0xMzIuOCw2My42MWMwLDQuNjctMi41Myw3LjU3LTYuNiw3LjU3LTIuMiwwLTMuODYtLjk1LTUuNzUtMy4zbC0uNTUtLjY4LTUuNDgsNC41MywuNDksLjY2YzIuOTgsNCw2LjU3LDUuODYsMTEuMjksNS44Niw4LjI4LDAsMTQuMDctNi4wMiwxNC4wNy0xNC42NXYtMjUuODRoLTcuNDd2MjUuODRaIiBmaWxsPSIjZmZmIi8+CiAgICAgICAgPHBhdGggZD0iTTE3MS4xOSw2MS4wMmMwLDYuMTctMy40OCwxMC4xNi04Ljg2LDEwLjE2cy04Ljg2LTMuOTktOC44Ni0xMC4xNnYtMjMuMjZoLTcuNDd2MjMuNmMwLDkuNzgsNi43OSwxNi44OSwxNi4xNSwxNi44OXMxNi4xNi03LjA5LDE2LjUtMTYuODl2LTIzLjZoLTcuNDd2MjMuMjZaIiBmaWxsPSIjZmZmIi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jUsMi4wOS0xLjEzLDIuNzMtMy44NCwxLjM4LTUuOC0yLjMxLTMuMzUtNS4yNi02LjI0LTguNjYtOC40OS0yLjIzLTEuNDctNS4yNi0uMzYtNi4wMywyLjE5LTEuOTMsNi40Mi00LjMzLDEyLjM3LTYuODUsMTguMTdaIiBmaWxsPSIjZTc0MjUzIi8+CiAgICAgICAgICA8cGF0aCBkPSJNNDkuNjcsNTYuMzJjLTUuOTUtMi41OC0xMi4wNC01LjAxLTE4LjYyLTYuOTEtMi4zMS0uNjctNC43LC44My01LjA5LDMuMi0uMjcsMS42Ny0uNDIsMy4zOS0uNDIsNS4xNCwwLDIuMzYsLjI2LDQuNjYsLjc1LDYuODcsLjU3LDIuNTcsMy40NiwzLjg3LDUuNzgsMi42NCw1Ljg2LTMuMSwxMS43MS01LjYsMTcuNTQtNy45MSwxLjM2LS41NCwxLjM5LTIuNDUsLjA1LTMuMDNaIiBmaWxsPSIjMDFiNjk5Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxyZWN0IHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIGZpbGw9Im5vbmUiLz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KPC9zdmc+" alt="JUCE" width="160" style="width:160px;height:auto;display:block"/></a>
|
||||
<p class="site-footer-bar__copyright">© Raw Material Software Limited</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,130 @@
|
||||
<!-- HTML header for doxygen 1.14.0-->
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$langISO">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen $doxygenversion"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME-->
|
||||
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME-->
|
||||
<!--BEGIN PROJECT_ICON-->
|
||||
<link rel="icon" href="$relpath^$projecticon" type="image/x-icon" />
|
||||
<!--END PROJECT_ICON-->
|
||||
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<!--BEGIN FULL_SIDEBAR-->
|
||||
<script type="text/javascript">var page_layout=1;</script>
|
||||
<!--END FULL_SIDEBAR-->
|
||||
<script type="text/javascript" src="$relpath^jquery.js"></script>
|
||||
<script type="text/javascript" src="$relpath^dynsections.js"></script>
|
||||
<!--BEGIN COPY_CLIPBOARD-->
|
||||
<script type="text/javascript" src="$relpath^clipboard.js"></script>
|
||||
<!--END COPY_CLIPBOARD-->
|
||||
$treeview
|
||||
$search
|
||||
$mathjax
|
||||
$darkmode
|
||||
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" />
|
||||
$extrastylesheet
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link rel="preload" as="style" href="https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,500,600,700,800,900|Source+Sans+Pro:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900" />
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:100,200,300,400,500,600,700,800,900|Source+Sans+Pro:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900|Open+Sans:100,200,300,400,500,600,700,800,900" />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@200..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap" rel="stylesheet">
|
||||
<script src="https://cdn.usefathom.com/script.js" site="COHIAING" defer></script>
|
||||
<script src="$relpath^highlight.min.js"></script>
|
||||
<script src="$relpath^cpp.min.js"></script>
|
||||
<script>
|
||||
/* fix doxygen's output to allow actual code highlighting */
|
||||
$(function () {
|
||||
$(".fragment").each(function () {
|
||||
const $frag = $(this);
|
||||
|
||||
// Collect only the code lines; ignore tooltips/links/extra html.
|
||||
const lines = $frag.children(".line").map(function () {
|
||||
return $(this).text();
|
||||
}).get();
|
||||
|
||||
const codeText = lines.join("\n");
|
||||
|
||||
// Build <pre><code> and set a language class (or omit for auto-detect).
|
||||
const $code = $("<code>", { class: "language-cpp" }).text(codeText);
|
||||
const $pre = $("<pre>").append($code);
|
||||
|
||||
// Replace the entire fragment with <pre><code>
|
||||
$frag.replaceWith($pre);
|
||||
|
||||
// Highlight the new code element
|
||||
hljs.highlightElement($code[0]);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="juce-site-chrome site-header">
|
||||
<div class="site-header__row">
|
||||
<a class="site-header__logo" href="https://juce.com" aria-label="JUCE home"><img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0iYiIgZGF0YS1uYW1lPSJMYXllciAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIHZpZXdCb3g9IjAgMCAyNjYuODcgMTE1LjUiPgogIDxnIGlkPSJjIiBkYXRhLW5hbWU9IkxheWVyIDEiPgogICAgPGc+CiAgICAgIDxnPgogICAgICAgIDxwYXRoIGQ9Ik0xMzIuOCw2My42MWMwLDQuNjctMi41Myw3LjU3LTYuNiw3LjU3LTIuMiwwLTMuODYtLjk1LTUuNzUtMy4zbC0uNTUtLjY4LTUuNDgsNC41MywuNDksLjY2YzIuOTgsNCw2LjU3LDU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OC02LDIuMzgtMTEuOTgsNC45Ni0xNy45Niw4LjE5LTIuMTEsMS4xNC0yLjc1LDMuOS0xLjM1LDUuODUsMi4zNCwzLjI3LDUuMjksNi4wNyw4LjY4LDguMjUsMi4yMywxLjQzLDUuMjIsLjMyLDUuOTktMi4yMiwxLjkxLTYuMzIsNC4yNy0xMi4xOCw2Ljc2LTE3LjlaIiBmaWxsPSIjYWRkMTRjIi8+CiAgICAgICAgICA8cGF0aCBkPSJNNjEuNzQsNTEuNjdjLS41OCwxLjM0LC43NSwyLjcyLDIuMTEsMi4xOCw2LjAzLTIuNCwxMi4wNC00Ljk5LDE4LjA1LTguMjUsMi4wOS0xLjEzLDIuNzMtMy44NCwxLjM4LTUuOC0yLjMxLTMuMzUtNS4yNi02LjI0LTguNjYtOC40OS0yLjIzLTEuNDctNS4yNi0uMzYtNi4wMywyLjE5LTEuOTMsNi40Mi00LjMzLDEyLjM3LTYuODUsMTguMTdaIiBmaWxsPSIjZTc0MjUzIi8+CiAgICAgICAgICA8cGF0aCBkPSJNNDkuNjcsNTYuMzJjLTUuOTUtMi41OC0xMi4wNC01LjAxLTE4LjYyLTYuOTEtMi4zMS0uNjctNC43LC44My01LjA5LDMuMi0uMjcsMS42Ny0uNDIsMy4zOS0uNDIsNS4xNCwwLDIuMzYsLjI2LDQuNjYsLjc1LDYuODcsLjU3LDIuNTcsMy40NiwzLjg3LDUuNzgsMi42NCw1Ljg2LTMuMSwxMS43MS01LjYsMTcuNTQtNy45MSwxLjM2LS41NCwxLjM5LTIuNDUsLjA1LTMuMDNaIiBmaWxsPSIjMDFiNjk5Ii8+CiAgICAgICAgPC9nPgogICAgICAgIDxyZWN0IHdpZHRoPSIyNjYuODciIGhlaWdodD0iMTE1LjUiIGZpbGw9Im5vbmUiLz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KPC9zdmc+" alt="JUCE" width="160" style="width:160px;height:auto;display:block"/></a>
|
||||
<div class="site-header__right">
|
||||
<nav class="wp-block-navigation" aria-label="JUCE">
|
||||
<button class="wp-block-navigation__responsive-container-open" aria-label="Open menu" aria-expanded="false">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"/></svg>
|
||||
</button>
|
||||
<div class="wp-block-navigation__responsive-container">
|
||||
<button class="wp-block-navigation__responsive-container-close" aria-label="Close menu">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12z"/></svg>
|
||||
</button>
|
||||
<ul class="wp-block-navigation__container">
|
||||
<li class="wp-block-navigation-item has-child"><a class="wp-block-navigation-item__content" href="https://juce.com/whats-new/">Discover</a><span class="wp-block-navigation__submenu-icon" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1.5 4l4.5 4 4.5-4"/></svg></span>
|
||||
<ul class="wp-block-navigation__submenu-container">
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/whats-new/">What’s New</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/features/">Features</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/made-with-juce/">Made With JUCE</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/category/blog/">Blog</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="wp-block-navigation-item has-child"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/documentation/">Learn</a><span class="wp-block-navigation__submenu-icon" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1.5 4l4.5 4 4.5-4"/></svg></span>
|
||||
<ul class="wp-block-navigation__submenu-container">
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/documentation/">Documentation</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/course/">Course</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/learn/tutorials/">Tutorials</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/resources/">Resources</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://juce.com/newsletter/">Newsletter</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://marketplace.juce.com">Marketplace</a></li>
|
||||
<li class="wp-block-navigation-item"><a class="wp-block-navigation-item__content" href="https://forum.juce.com/">Forum</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
<a class="header-account" href="https://account.juce.com/account/dashboard" aria-label="My account" title="My account">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="30" height="30" fill="none" stroke="currentColor" stroke-width="2.25" aria-hidden="true"><circle cx="16" cy="16" r="14.5"/><circle cx="16" cy="12.5" r="5" fill="currentColor" stroke="none"/><path d="M6.8 25.9a11.5 11.5 0 0 1 18.4 0" fill="currentColor" stroke="none"/></svg>
|
||||
</a>
|
||||
<a class="site-header__cta wp-element-button" href="https://juce.com/get-juce/">Get JUCE</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<script type="text/javascript">
|
||||
/* juce.com chrome: hamburger toggle (no framework required) */
|
||||
document.addEventListener('click', function (e) {
|
||||
var open = e.target.closest('.site-header .wp-block-navigation__responsive-container-open');
|
||||
var close = e.target.closest('.site-header .wp-block-navigation__responsive-container-close');
|
||||
var modal = document.querySelector('.site-header .wp-block-navigation__responsive-container');
|
||||
if (open && modal) { modal.classList.add('is-menu-open'); document.documentElement.classList.add('juce-menu-open'); open.setAttribute('aria-expanded', 'true'); }
|
||||
if (close && modal) { modal.classList.remove('is-menu-open'); document.documentElement.classList.remove('juce-menu-open'); }
|
||||
});
|
||||
document.addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Escape') {
|
||||
var modal = document.querySelector('.site-header .wp-block-navigation__responsive-container.is-menu-open');
|
||||
if (modal) { modal.classList.remove('is-menu-open'); document.documentElement.classList.remove('juce-menu-open'); }
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<!--BEGIN FULL_SIDEBAR-->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
<!--END FULL_SIDEBAR-->
|
||||
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
|
||||
<!-- end header part -->
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<script language=javascript>
|
||||
function redirect(){
|
||||
window.location = "/master/index.html";
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="redirect()">
|
||||
</body>
|
||||
</html>
|
||||
Vendored
+47
@@ -0,0 +1,47 @@
|
||||
/*! `cpp` grammar compiled for Highlight.js 11.11.1 */
|
||||
(()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,a=e.COMMENT("//","$",{
|
||||
contains:[{begin:/\\\n/}]
|
||||
}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="(?!struct)("+n+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
className:"number",variants:[{
|
||||
begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
||||
},{
|
||||
begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
|
||||
}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},u={
|
||||
className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0
|
||||
},d=t.optional(r)+e.IDENT_RE+"\\s*\\(",p={
|
||||
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||
},_={className:"function.dispatch",relevance:0,keywords:{
|
||||
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||
},
|
||||
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||
},m=[_,l,s,a,e.C_BLOCK_COMMENT_MODE,o,c],f={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",
|
||||
begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{
|
||||
begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{
|
||||
begin:/:/,endsWithParent:!0,contains:[c,o]},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||
contains:[a,e.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||
relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,o,s]}]
|
||||
},s,a,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||
classNameAliases:{"function.dispatch":"built_in"},
|
||||
contains:[].concat(f,g,_,m,[l,{
|
||||
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
||||
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||
className:{1:"keyword",3:"title.class"}}])}}})();hljs.registerLanguage("cpp",e)
|
||||
})();
|
||||
+354
@@ -0,0 +1,354 @@
|
||||
/*!
|
||||
Highlight.js v11.11.1 (git: 08cb242e7d)
|
||||
(c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
|
||||
License: BSD-3-Clause
|
||||
*/
|
||||
var hljs=function(){"use strict";function e(t){
|
||||
return t instanceof Map?t.clear=t.delete=t.set=()=>{
|
||||
throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
|
||||
throw Error("set is read-only")
|
||||
}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach((n=>{
|
||||
const i=t[n],s=typeof i;"object"!==s&&"function"!==s||Object.isFrozen(i)||e(i)
|
||||
})),t}class t{constructor(e){
|
||||
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
|
||||
ignoreMatch(){this.isMatchIgnored=!0}}function n(e){
|
||||
return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")
|
||||
}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
|
||||
;return t.forEach((e=>{for(const t in e)n[t]=e[t]})),n}const s=e=>!!e.scope
|
||||
;class r{constructor(e,t){
|
||||
this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
|
||||
this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
|
||||
if(e.startsWith("language:"))return e.replace("language:","language-")
|
||||
;if(e.includes(".")){const n=e.split(".")
|
||||
;return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")
|
||||
}return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}
|
||||
closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
|
||||
this.buffer+=`<span class="${e}">`}}const o=(e={})=>{const t={children:[]}
|
||||
;return Object.assign(t,e),t};class a{constructor(){
|
||||
this.rootNode=o(),this.stack=[this.rootNode]}get top(){
|
||||
return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
|
||||
this.top.children.push(e)}openNode(e){const t=o({scope:e})
|
||||
;this.add(t),this.stack.push(t)}closeNode(){
|
||||
if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
|
||||
for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
|
||||
walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
|
||||
return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
|
||||
t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){
|
||||
"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{
|
||||
a._collapse(e)})))}}class c extends a{constructor(e){super(),this.options=e}
|
||||
addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
|
||||
this.closeNode()}__addSublanguage(e,t){const n=e.root
|
||||
;t&&(n.scope="language:"+t),this.add(n)}toHTML(){
|
||||
return new r(this,this.options).value()}finalize(){
|
||||
return this.closeAllNodes(),!0}}function l(e){
|
||||
return e?"string"==typeof e?e:e.source:null}function g(e){return h("(?=",e,")")}
|
||||
function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}
|
||||
function h(...e){return e.map((e=>l(e))).join("")}function f(...e){const t=(e=>{
|
||||
const t=e[e.length-1]
|
||||
;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
|
||||
})(e);return"("+(t.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
|
||||
function p(e){return RegExp(e.toString()+"|").exec("").length-1}
|
||||
const b=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
|
||||
;function m(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n
|
||||
;let i=l(e),s="";for(;i.length>0;){const e=b.exec(i);if(!e){s+=i;break}
|
||||
s+=i.substring(0,e.index),
|
||||
i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],
|
||||
"("===e[0]&&n++)}return s})).map((e=>`(${e})`)).join(t)}
|
||||
const E="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",O={
|
||||
begin:"\\\\[\\s\\S]",relevance:0},v={scope:"string",begin:"'",end:"'",
|
||||
illegal:"\\n",contains:[O]},k={scope:"string",begin:'"',end:'"',illegal:"\\n",
|
||||
contains:[O]},N=(e,t,n={})=>{const s=i({scope:"comment",begin:e,end:t,
|
||||
contains:[]},n);s.contains.push({scope:"doctag",
|
||||
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
|
||||
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
|
||||
;const r=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
|
||||
;return s.contains.push({begin:h(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
|
||||
},S=N("//","$"),M=N("/\\*","\\*/"),R=N("#","$");var j=Object.freeze({
|
||||
__proto__:null,APOS_STRING_MODE:v,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:{
|
||||
scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:N,
|
||||
C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:S,C_NUMBER_MODE:{scope:"number",
|
||||
begin:_,relevance:0},C_NUMBER_RE:_,END_SAME_AS_BEGIN:e=>Object.assign(e,{
|
||||
"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
|
||||
t.data._beginMatch!==e[1]&&t.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
|
||||
MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+x,relevance:0},
|
||||
NUMBER_MODE:{scope:"number",begin:y,relevance:0},NUMBER_RE:y,
|
||||
PHRASAL_WORDS_MODE:{
|
||||
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
|
||||
},QUOTE_STRING_MODE:k,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
|
||||
end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},
|
||||
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
|
||||
SHEBANG:(e={})=>{const t=/^#![ ]*\//
|
||||
;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,
|
||||
end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},
|
||||
TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:x,
|
||||
UNDERSCORE_TITLE_MODE:{scope:"title",begin:x,relevance:0}});function A(e,t){
|
||||
"."===e.input[e.index-1]&&t.ignoreMatch()}function I(e,t){
|
||||
void 0!==e.className&&(e.scope=e.className,delete e.className)}function T(e,t){
|
||||
t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
|
||||
e.__beforeBegin=A,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
|
||||
void 0===e.relevance&&(e.relevance=0))}function L(e,t){
|
||||
Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){
|
||||
if(e.match){
|
||||
if(e.begin||e.end)throw Error("begin & end are not supported with match")
|
||||
;e.begin=e.match,delete e.match}}function P(e,t){
|
||||
void 0===e.relevance&&(e.relevance=1)}const D=(e,t)=>{if(!e.beforeMatch)return
|
||||
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
|
||||
;const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]
|
||||
})),e.keywords=n.keywords,e.begin=h(n.beforeMatch,g(n.begin)),e.starts={
|
||||
relevance:0,contains:[Object.assign(n,{endsParent:!0})]
|
||||
},e.relevance=0,delete n.beforeMatch
|
||||
},H=["of","and","for","in","not","or","if","then","parent","list","value"]
|
||||
;function C(e,t,n="keyword"){const i=Object.create(null)
|
||||
;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach((n=>{
|
||||
Object.assign(i,C(e[n],t,n))})),i;function s(e,n){
|
||||
t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((t=>{const n=t.split("|")
|
||||
;i[n[0]]=[e,$(n[0],n[1])]}))}}function $(e,t){
|
||||
return t?Number(t):(e=>H.includes(e.toLowerCase()))(e)?0:1}const U={},z=e=>{
|
||||
console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{
|
||||
U[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),U[`${e}/${t}`]=!0)
|
||||
},G=Error();function K(e,t,{key:n}){let i=0;const s=e[n],r={},o={}
|
||||
;for(let e=1;e<=t.length;e++)o[e+i]=s[e],r[e+i]=!0,i+=p(t[e-1])
|
||||
;e[n]=o,e[n]._emit=r,e[n]._multi=!0}function F(e){(e=>{
|
||||
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
|
||||
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
|
||||
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
|
||||
}),(e=>{if(Array.isArray(e.begin)){
|
||||
if(e.skip||e.excludeBegin||e.returnBegin)throw z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
|
||||
G
|
||||
;if("object"!=typeof e.beginScope||null===e.beginScope)throw z("beginScope must be object"),
|
||||
G;K(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
|
||||
if(Array.isArray(e.end)){
|
||||
if(e.skip||e.excludeEnd||e.returnEnd)throw z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
|
||||
G
|
||||
;if("object"!=typeof e.endScope||null===e.endScope)throw z("endScope must be object"),
|
||||
G;K(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function Z(e){
|
||||
function t(t,n){
|
||||
return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
|
||||
}class n{constructor(){
|
||||
this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
|
||||
addRule(e,t){
|
||||
t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
|
||||
this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
|
||||
;const e=this.regexes.map((e=>e[1]));this.matcherRe=t(m(e,{joinWith:"|"
|
||||
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
|
||||
;const t=this.matcherRe.exec(e);if(!t)return null
|
||||
;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),i=this.matchIndexes[n]
|
||||
;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
|
||||
this.rules=[],this.multiRegexes=[],
|
||||
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
|
||||
if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
|
||||
;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),
|
||||
t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
|
||||
return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
|
||||
this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
|
||||
const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
|
||||
;let n=t.exec(e)
|
||||
;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
|
||||
const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
|
||||
return n&&(this.regexIndex+=n.position+1,
|
||||
this.regexIndex===this.count&&this.considerAll()),n}}
|
||||
if(e.compilerExtensions||(e.compilerExtensions=[]),
|
||||
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
|
||||
;return e.classNameAliases=i(e.classNameAliases||{}),function n(r,o){const a=r
|
||||
;if(r.isCompiled)return a
|
||||
;[I,B,F,D].forEach((e=>e(r,o))),e.compilerExtensions.forEach((e=>e(r,o))),
|
||||
r.__beforeBegin=null,[T,L,P].forEach((e=>e(r,o))),r.isCompiled=!0;let c=null
|
||||
;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),
|
||||
c=r.keywords.$pattern,
|
||||
delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=C(r.keywords,e.case_insensitive)),
|
||||
a.keywordPatternRe=t(c,!0),
|
||||
o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=t(a.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),
|
||||
r.end&&(a.endRe=t(a.end)),
|
||||
a.terminatorEnd=l(a.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),
|
||||
r.illegal&&(a.illegalRe=t(r.illegal)),
|
||||
r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((t=>i(e,{
|
||||
variants:null},t)))),e.cachedVariants?e.cachedVariants:V(e)?i(e,{
|
||||
starts:e.starts?i(e.starts):null
|
||||
}):Object.isFrozen(e)?i(e):e))("self"===e?r:e)))),r.contains.forEach((e=>{n(e,a)
|
||||
})),r.starts&&n(r.starts,o),a.matcher=(e=>{const t=new s
|
||||
;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"
|
||||
}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
|
||||
}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function V(e){
|
||||
return!!e&&(e.endsWithParent||V(e.starts))}class q extends Error{
|
||||
constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
|
||||
const J=n,Y=i,Q=Symbol("nomatch"),ee=n=>{
|
||||
const i=Object.create(null),s=Object.create(null),r=[];let o=!0
|
||||
;const a="Could not find the language '{}', did you forget to load/include a language module?",l={
|
||||
disableAutodetect:!0,name:"Plain text",contains:[]};let p={
|
||||
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
|
||||
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
|
||||
cssSelector:"pre code",languages:null,__emitter:c};function b(e){
|
||||
return p.noHighlightRe.test(e)}function m(e,t,n){let i="",s=""
|
||||
;"object"==typeof t?(i=e,
|
||||
n=t.ignoreIllegals,s=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),
|
||||
X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
|
||||
s=e,i=t),void 0===n&&(n=!0);const r={code:i,language:s};N("before:highlight",r)
|
||||
;const o=r.result?r.result:E(r.language,r.code,n)
|
||||
;return o.code=r.code,N("after:highlight",o),o}function E(e,n,s,r){
|
||||
const c=Object.create(null);function l(){if(!N.keywords)return void M.addText(R)
|
||||
;let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(R),n=""
|
||||
;for(;t;){n+=R.substring(e,t.index)
|
||||
;const s=w.case_insensitive?t[0].toLowerCase():t[0],r=(i=s,N.keywords[i]);if(r){
|
||||
const[e,i]=r
|
||||
;if(M.addText(n),n="",c[s]=(c[s]||0)+1,c[s]<=7&&(j+=i),e.startsWith("_"))n+=t[0];else{
|
||||
const n=w.classNameAliases[e]||e;u(t[0],n)}}else n+=t[0]
|
||||
;e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(R)}var i
|
||||
;n+=R.substring(e),M.addText(n)}function g(){null!=N.subLanguage?(()=>{
|
||||
if(""===R)return;let e=null;if("string"==typeof N.subLanguage){
|
||||
if(!i[N.subLanguage])return void M.addText(R)
|
||||
;e=E(N.subLanguage,R,!0,S[N.subLanguage]),S[N.subLanguage]=e._top
|
||||
}else e=x(R,N.subLanguage.length?N.subLanguage:null)
|
||||
;N.relevance>0&&(j+=e.relevance),M.__addSublanguage(e._emitter,e.language)
|
||||
})():l(),R=""}function u(e,t){
|
||||
""!==e&&(M.startScope(t),M.addText(e),M.endScope())}function d(e,t){let n=1
|
||||
;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}
|
||||
const i=w.classNameAliases[e[n]]||e[n],s=t[n];i?u(s,i):(R=s,l(),R=""),n++}}
|
||||
function h(e,t){
|
||||
return e.scope&&"string"==typeof e.scope&&M.openNode(w.classNameAliases[e.scope]||e.scope),
|
||||
e.beginScope&&(e.beginScope._wrap?(u(R,w.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
|
||||
R=""):e.beginScope._multi&&(d(e.beginScope,t),R="")),N=Object.create(e,{parent:{
|
||||
value:N}}),N}function f(e,n,i){let s=((e,t)=>{const n=e&&e.exec(t)
|
||||
;return n&&0===n.index})(e.endRe,i);if(s){if(e["on:end"]){const i=new t(e)
|
||||
;e["on:end"](n,i),i.isMatchIgnored&&(s=!1)}if(s){
|
||||
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
|
||||
if(e.endsWithParent)return f(e.parent,n,i)}function b(e){
|
||||
return 0===N.matcher.regexIndex?(R+=e[0],1):(T=!0,0)}function m(e){
|
||||
const t=e[0],i=n.substring(e.index),s=f(N,e,i);if(!s)return Q;const r=N
|
||||
;N.endScope&&N.endScope._wrap?(g(),
|
||||
u(t,N.endScope._wrap)):N.endScope&&N.endScope._multi?(g(),
|
||||
d(N.endScope,e)):r.skip?R+=t:(r.returnEnd||r.excludeEnd||(R+=t),
|
||||
g(),r.excludeEnd&&(R=t));do{
|
||||
N.scope&&M.closeNode(),N.skip||N.subLanguage||(j+=N.relevance),N=N.parent
|
||||
}while(N!==s.parent);return s.starts&&h(s.starts,e),r.returnEnd?0:t.length}
|
||||
let y={};function _(i,r){const a=r&&r[0];if(R+=i,null==a)return g(),0
|
||||
;if("begin"===y.type&&"end"===r.type&&y.index===r.index&&""===a){
|
||||
if(R+=n.slice(r.index,r.index+1),!o){const t=Error(`0 width match regex (${e})`)
|
||||
;throw t.languageName=e,t.badRule=y.rule,t}return 1}
|
||||
if(y=r,"begin"===r.type)return(e=>{
|
||||
const n=e[0],i=e.rule,s=new t(i),r=[i.__beforeBegin,i["on:begin"]]
|
||||
;for(const t of r)if(t&&(t(e,s),s.isMatchIgnored))return b(n)
|
||||
;return i.skip?R+=n:(i.excludeBegin&&(R+=n),
|
||||
g(),i.returnBegin||i.excludeBegin||(R=n)),h(i,e),i.returnBegin?0:n.length})(r)
|
||||
;if("illegal"===r.type&&!s){
|
||||
const e=Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"')
|
||||
;throw e.mode=N,e}if("end"===r.type){const e=m(r);if(e!==Q)return e}
|
||||
if("illegal"===r.type&&""===a)return R+="\n",1
|
||||
;if(I>1e5&&I>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
|
||||
;return R+=a,a.length}const w=O(e)
|
||||
;if(!w)throw z(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
|
||||
;const v=Z(w);let k="",N=r||v;const S={},M=new p.__emitter(p);(()=>{const e=[]
|
||||
;for(let t=N;t!==w;t=t.parent)t.scope&&e.unshift(t.scope)
|
||||
;e.forEach((e=>M.openNode(e)))})();let R="",j=0,A=0,I=0,T=!1;try{
|
||||
if(w.__emitTokens)w.__emitTokens(n,M);else{for(N.matcher.considerAll();;){
|
||||
I++,T?T=!1:N.matcher.considerAll(),N.matcher.lastIndex=A
|
||||
;const e=N.matcher.exec(n);if(!e)break;const t=_(n.substring(A,e.index),e)
|
||||
;A=e.index+t}_(n.substring(A))}return M.finalize(),k=M.toHTML(),{language:e,
|
||||
value:k,relevance:j,illegal:!1,_emitter:M,_top:N}}catch(t){
|
||||
if(t.message&&t.message.includes("Illegal"))return{language:e,value:J(n),
|
||||
illegal:!0,relevance:0,_illegalBy:{message:t.message,index:A,
|
||||
context:n.slice(A-100,A+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{
|
||||
language:e,value:J(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:N}
|
||||
;throw t}}function x(e,t){t=t||p.languages||Object.keys(i);const n=(e=>{
|
||||
const t={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
|
||||
;return t._emitter.addText(e),t})(e),s=t.filter(O).filter(k).map((t=>E(t,e,!1)))
|
||||
;s.unshift(n);const r=s.sort(((e,t)=>{
|
||||
if(e.relevance!==t.relevance)return t.relevance-e.relevance
|
||||
;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
|
||||
;if(O(t.language).supersetOf===e.language)return-1}return 0})),[o,a]=r,c=o
|
||||
;return c.secondBest=a,c}function y(e){let t=null;const n=(e=>{
|
||||
let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
|
||||
;const n=p.languageDetectRe.exec(t);if(n){const t=O(n[1])
|
||||
;return t||(W(a.replace("{}",n[1])),
|
||||
W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
|
||||
return t.split(/\s+/).find((e=>b(e)||O(e)))})(e);if(b(n))return
|
||||
;if(N("before:highlightElement",{el:e,language:n
|
||||
}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
|
||||
;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
|
||||
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
|
||||
console.warn("The element with unescaped HTML:"),
|
||||
console.warn(e)),p.throwUnescapedHTML))throw new q("One of your code blocks includes unescaped HTML.",e.innerHTML)
|
||||
;t=e;const i=t.textContent,r=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
|
||||
;e.innerHTML=r.value,e.dataset.highlighted="yes",((e,t,n)=>{const i=t&&s[t]||n
|
||||
;e.classList.add("hljs"),e.classList.add("language-"+i)
|
||||
})(e,n,r.language),e.result={language:r.language,re:r.relevance,
|
||||
relevance:r.relevance},r.secondBest&&(e.secondBest={
|
||||
language:r.secondBest.language,relevance:r.secondBest.relevance
|
||||
}),N("after:highlightElement",{el:e,result:r,text:i})}let _=!1;function w(){
|
||||
if("loading"===document.readyState)return _||window.addEventListener("DOMContentLoaded",(()=>{
|
||||
w()}),!1),void(_=!0);document.querySelectorAll(p.cssSelector).forEach(y)}
|
||||
function O(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}
|
||||
function v(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
|
||||
s[e.toLowerCase()]=t}))}function k(e){const t=O(e)
|
||||
;return t&&!t.disableAutodetect}function N(e,t){const n=e;r.forEach((e=>{
|
||||
e[n]&&e[n](t)}))}Object.assign(n,{highlight:m,highlightAuto:x,highlightAll:w,
|
||||
highlightElement:y,
|
||||
highlightBlock:e=>(X("10.7.0","highlightBlock will be removed entirely in v12.0"),
|
||||
X("10.7.0","Please use highlightElement now."),y(e)),configure:e=>{p=Y(p,e)},
|
||||
initHighlighting:()=>{
|
||||
w(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
|
||||
initHighlightingOnLoad:()=>{
|
||||
w(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
|
||||
},registerLanguage:(e,t)=>{let s=null;try{s=t(n)}catch(t){
|
||||
if(z("Language definition for '{}' could not be registered.".replace("{}",e)),
|
||||
!o)throw t;z(t),s=l}
|
||||
s.name||(s.name=e),i[e]=s,s.rawDefinition=t.bind(null,n),s.aliases&&v(s.aliases,{
|
||||
languageName:e})},unregisterLanguage:e=>{delete i[e]
|
||||
;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
|
||||
listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:v,
|
||||
autoDetection:k,inherit:Y,addPlugin:e=>{(e=>{
|
||||
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
|
||||
e["before:highlightBlock"](Object.assign({block:t.el},t))
|
||||
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
|
||||
e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)},
|
||||
removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{
|
||||
o=!1},n.safeMode=()=>{o=!0},n.versionString="11.11.1",n.regex={concat:h,
|
||||
lookahead:g,either:f,optional:d,anyNumberOfTimes:u}
|
||||
;for(const t in j)"object"==typeof j[t]&&e(j[t]);return Object.assign(n,j),n
|
||||
},te=ee({});return te.newInstance=()=>ee({}),te}()
|
||||
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);/*! `cpp` grammar compiled for Highlight.js 11.11.1 */
|
||||
(()=>{var e=(()=>{"use strict";return e=>{const t=e.regex,a=e.COMMENT("//","$",{
|
||||
contains:[{begin:/\\\n/}]
|
||||
}),n="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",i="(?!struct)("+n+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={
|
||||
className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{
|
||||
begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{
|
||||
begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
|
||||
end:"'",illegal:"."},e.END_SAME_AS_BEGIN({
|
||||
begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},o={
|
||||
className:"number",variants:[{
|
||||
begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"
|
||||
},{
|
||||
begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"
|
||||
}],relevance:0},l={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{
|
||||
keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"
|
||||
},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{
|
||||
className:"string",begin:/<.*?>/},a,e.C_BLOCK_COMMENT_MODE]},u={
|
||||
className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0
|
||||
},d=t.optional(r)+e.IDENT_RE+"\\s*\\(",p={
|
||||
type:["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],
|
||||
keyword:["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],
|
||||
literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],
|
||||
_type_hints:["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"]
|
||||
},_={className:"function.dispatch",relevance:0,keywords:{
|
||||
_hint:["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"]
|
||||
},
|
||||
begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))
|
||||
},m=[_,l,s,a,e.C_BLOCK_COMMENT_MODE,o,c],f={variants:[{begin:/=/,end:/;/},{
|
||||
begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],
|
||||
keywords:p,contains:m.concat([{begin:/\(/,end:/\)/,keywords:p,
|
||||
contains:m.concat(["self"]),relevance:0}]),relevance:0},g={className:"function",
|
||||
begin:"("+i+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,
|
||||
keywords:p,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:n,keywords:p,relevance:0},{
|
||||
begin:d,returnBegin:!0,contains:[u],relevance:0},{begin:/::/,relevance:0},{
|
||||
begin:/:/,endsWithParent:!0,contains:[c,o]},{relevance:0,match:/,/},{
|
||||
className:"params",begin:/\(/,end:/\)/,keywords:p,relevance:0,
|
||||
contains:[a,e.C_BLOCK_COMMENT_MODE,c,o,s,{begin:/\(/,end:/\)/,keywords:p,
|
||||
relevance:0,contains:["self",a,e.C_BLOCK_COMMENT_MODE,c,o,s]}]
|
||||
},s,a,e.C_BLOCK_COMMENT_MODE,l]};return{name:"C++",
|
||||
aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:p,illegal:"</",
|
||||
classNameAliases:{"function.dispatch":"built_in"},
|
||||
contains:[].concat(f,g,_,m,[l,{
|
||||
begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",
|
||||
end:">",keywords:p,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:p},{
|
||||
match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],
|
||||
className:{1:"keyword",3:"title.class"}}])}}})();hljs.registerLanguage("cpp",e)
|
||||
})();
|
||||
Reference in New Issue
Block a user