halx99
f0259eb00a
Fix ci
2021-12-23 19:14:53 +08:00
halx99
46805e8c08
Fix warnings
2021-12-23 18:54:30 +08:00
halx99
0d87d4f717
Fix ci & add run test cost
2021-12-23 18:52:33 +08:00
halx99
32cccfe377
Use string_view for all dom APIs
2021-12-23 18:44:32 +08:00
halx99
b634ea55df
Node copy avoid stringlen operation
2021-12-23 17:17:33 +08:00
halx99
7791e7dfbb
Store length for setters
2021-12-23 16:55:08 +08:00
halx99
9129d7900c
Fix ci
2021-12-23 16:15:30 +08:00
halx99
b025069fbe
Fix for old compilers
2021-12-23 16:11:40 +08:00
deal
4e4af11838
Fix warnings on PUGIXML_WCHAR_MODE
2021-12-23 16:05:36 +08:00
deal
233d7fd4f3
Update build.yml
2021-12-23 16:00:12 +08:00
halx99
69e24c7fdd
Add string_view name & value getter with suffix for compatible
2021-12-23 15:45:20 +08:00
halx99
909b3b65f1
Add length field for name & value
2021-12-23 15:13:59 +08:00
halx99
bd0fd02860
Delete unused
2021-09-30 14:39:01 +08:00
halx99
15cec5f982
Fix logic
2021-09-30 14:36:42 +08:00
halx99
366113e72e
Make logic more clearly
2021-09-30 13:27:39 +08:00
halx99
0d9a303991
Add shallow_copy support for improve performance of literal string
2021-09-30 13:00:58 +08:00
halx99
4852708894
Fix for non-cpp11 compiler
2021-09-30 11:42:35 +08:00
halx99
dbced76d85
Update pugixml.hpp
2021-09-30 11:30:17 +08:00
halx99
bffbcfddd3
Fix for non-cpp11 compiler
2021-09-30 08:46:06 +08:00
halx99
e3af24413d
Fix for non-cpp11 compiler
2021-09-30 08:26:45 +08:00
halx99
fd795fdf64
Avoid unnecessary strlen operations
2021-09-29 17:01:12 +08:00
halx99
4ed7a7f746
Fix compile issue for compiler without cpp11
2021-09-29 16:48:25 +08:00
halx99
5f1eb20568
Fix appveyor msvc120 compile error
2021-09-29 15:19:22 +08:00
halx99
b79d5806cc
Use basic_string_view<char_t> instead of string_view
2021-09-29 14:56:23 +08:00
halx99
aeda2eff24
Use string_view when needs store
2021-09-29 11:47:05 +08:00
halx99
3a975d2f8e
Add explicit boolean type for store as 'true' or 'false'
2021-09-29 11:21:31 +08:00
halx99
15697a7b86
Initial string_view for set_name, set_value
2021-09-29 10:37:52 +08:00
Arseny Kapoulkine
9e382f9807
Merge pull request #436 from zeux/zeux-patch-1
...
Set CMP0091 CMake policy
2021-08-07 19:06:12 -07:00
Arseny Kapoulkine
f1fbd707f1
Set CMP0091 CMake policy
...
This allows the correct use of runtime library override.
Fixes #412
2021-08-07 09:57:21 -07:00
Arseny Kapoulkine
a5991972ba
Merge pull request #426 from bjornblissing/feature/cmake_pugiconfig
...
Add Cmake options for pugiconfig.hpp options
Fixes #387
Closes #388
2021-08-07 09:54:18 -07:00
Arseny Kapoulkine
c624c7a8bd
Update CMakeLists.txt
...
Remove memory configuration options and rely on automatic detection of long long
2021-08-07 09:51:54 -07:00
Arseny Kapoulkine
8bd209fb8b
docs: Update manual to be more explicit about save_file return
...
The function returns true on success and false on failure.
2021-07-09 17:27:01 -07:00
Arseny Kapoulkine
657619962f
Merge pull request #431 from justinkb/master
...
Fix include in test_document.cpp when building against libc++. The _GLIBCXX_HAVE_UNISTD_H relies on pugixml and its tests being built against libstdc++, with LLVM's libc++ this won't be defined
2021-06-30 14:28:44 -07:00
Paul Mulders
81274bb026
Fix include in test_document.cpp when building against libc++
2021-06-30 23:07:54 +02:00
Arseny Kapoulkine
37eddaa0b2
Update .codecov.yml
...
Mark "project" check as information and disable "patch" check.
2021-06-30 13:11:45 -07:00
Björn Blissing
e7eae035ff
Store definitions in variable to avoid duplication
...
Store compile definitions in variable to avoid duplicated generator
expressions.
2021-06-28 19:51:20 +02:00
Björn Blissing
52a7981b85
Make some compile definitions public
...
Moved needed defines to public section of target_compile_definitions.
2021-06-28 13:36:55 +02:00
Björn Blissing
92ac6ac1d9
Update github action to trigger defines via CMake
...
Use options via explicit CMake defines, instead of calling them from
the generic PUGI_BUILD_DEFINES variable.
2021-06-28 13:17:06 +02:00
Björn Blissing
50b103f127
Fix generator expressions
2021-06-28 13:17:06 +02:00
Björn Blissing
1cd65c7eb8
Move advanced memory settings into target defs.
...
Moved the advanced memory options into target_compile_definitions using
generator expressions.
2021-06-28 12:50:27 +02:00
Björn Blissing
f1946432ee
Check for existence of long long
2021-06-28 12:50:27 +02:00
Björn Blissing
e2ba4f4014
Add options to build targets
...
Add custom options to the build targets via generator expressions.
2021-06-28 12:50:27 +02:00
Björn Blissing
5f49f2c657
Mark advanced options and removed redundant ones
...
Options marked as advanced are hidden by default in the CMake GUI.
The `PUGIXML_HEADER_ONLY` are redundant when during CMake builds, hence
removed.
The `PUGIXML_HAS_LONG_LONG` should be handled automatically and needs to
be rewritten, hence these options has been removed.
2021-06-28 12:50:27 +02:00
Björn Blissing
986b7ffd01
Add Cmake options for pugiconfig.hpp
...
Add Cmake options variables for each of the defines in pugiconfig.hpp.
2021-06-28 12:50:27 +02:00
Arseny Kapoulkine
06a516c73c
Merge pull request #428 from zeux/gha
...
Switch to GitHub Actions build from Travis CI
2021-06-27 20:08:57 -07:00
Arseny Kapoulkine
a6a63a1b50
gcov crashes on LLVM-produced coverage on Linux
2021-06-27 19:27:40 -07:00
Arseny Kapoulkine
5cff00e5ea
Fix coverage build to include CXX define
...
Also it seems like we don't need to restrict coverage build to
Linux/clang?
2021-06-27 19:20:27 -07:00
Arseny Kapoulkine
0de580155d
Don't run GHA workflow on push to branches
...
Also convert line endings to Unix.
2021-06-27 19:12:59 -07:00
Arseny Kapoulkine
e7b545b288
Remove custom job name for unix
2021-06-27 19:09:08 -07:00
Arseny Kapoulkine
3097a2c711
Switch to export and GH vars
2021-06-27 19:04:15 -07:00