Commit graph

24 commits

Author SHA1 Message Date
Jacob 35a15651ca Rename the different classes. I felt it was too verbose. 2024-05-12 20:18:06 +02:00
Jacob 8f3ba89445 Implement iterators for several classes and rename HTMLElementProperties
to HTMLProperties.
2024-05-12 20:05:23 +02:00
Jacob 17d8bf6b4b Add front() and back() methods for the various classes. 2024-05-07 22:58:53 +02:00
Jacob 43daa77f6d Implement support for plain text elements and sections without a tag.
Also, add example replica of biteme.lol.
2024-05-07 21:21:58 +02:00
Jacob 21ddd1d82c Change the behavior of FORMATTING_PRETTY to include tabs.
FORMATTING_NEWLINE can be used if you want to preserve the old behavior.
2024-05-07 17:26:11 +02:00
Jacob 804309d323 Implement operator overloading for several classes. 2024-05-07 00:08:54 +02:00
Jacob aca33e80d5 Implement at() methods for several classes. 2024-05-06 14:18:01 +02:00
Jacob cddf11235f Add position functions for HTMLElementProperties. 2024-05-06 13:19:16 +02:00
Jacob 292b6018d6 Add position functions for CSSElement. 2024-05-06 11:47:24 +02:00
Jacob 298a3c96b6 Implement push_front() method for CSSElement, implement find() method
that takes an std::string for CSSStylesheet.
2024-05-06 11:06:45 +02:00
Jacob f9bf0bbfd4 Add new HTMLSection::find() method that takes an std::string parameter
containing a deserialized section or element,
and returns the position of an identical section or element, or npos.
2024-05-06 02:45:15 +02:00
Jacob 8f1f175138 Change the behavior of find() functions. They no longer throw an
exception, but rather return npos (-1).
2024-05-06 02:28:23 +02:00
Jacob 8a8313a01c Minor change to the Code of Conduct section. 2024-05-06 01:23:23 +02:00
Jacob 9c990fe9eb Lower C++ standard to C++11, because currently we're
not using any newer features.
2024-05-06 01:00:54 +02:00
Jacob 70f9ed770b Add CI badge. 2024-05-06 00:31:29 +02:00
Jacob 0b0c89a55b Maybe changing the way we set the standard will fix it? 2024-05-06 00:26:23 +02:00
Jacob e950a54477 clang++ doesn't appear to work for whatever reason, try GCC. 2024-05-06 00:23:42 +02:00
Jacob ded3f5ac69 Alright, hopefully fix it. 2024-05-06 00:11:39 +02:00
Jacob 202353bfea Fix some mistakes causing GCC runners to run. 2024-05-06 00:07:18 +02:00
Jacob d95fa3ab8b Add macOS runner 2024-05-06 00:06:06 +02:00
Jacob 8689ada650 Fix some mistakes in the CMakeLists file, disable tests for GitHub
Actions
2024-05-06 00:00:11 +02:00
Jacob 7ffce8b66b Add GitHub Actions file. 2024-05-05 23:51:02 +02:00
Jacob c36d834d4f Fix typo in the README. 2024-05-05 23:45:28 +02:00
Jacob 0641a95770 Initial commit 2024-05-05 23:31:42 +02:00