License matching functionality, primarily provided by org.spdx.utility.compare.LicenseCompareHelper.
License matching functionality, primarily provided by org.spdx.utility.compare.LicenseCompareHelper.
(exceptions-within-text text)
(exceptions-within-text text exception-ids)
Returns the set of ids for all exceptions found in the given text (optionally from the provided set of exception ids), or nil if none were found.
Note: this method has a substantial performance cost. Callers are encouraged
to break their ids into batches and call the 2-arg version with each batch
in parallel (e.g. using clojure.core/pmap
), then merge the results.
Returns the set of ids for all exceptions found in the given text (optionally from the provided set of exception ids), or nil if none were found. Note: this method has a substantial performance cost. Callers are encouraged to break their ids into batches and call the 2-arg version with each batch in parallel (e.g. using `clojure.core/pmap`), then merge the results.
(init!)
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
(licenses-within-text text)
(licenses-within-text text license-ids)
Returns the set of ids for all licenses found in the given text (optionally from the provided list of license ids), or nil if none were found.
Note: this method has a substantial performance cost. Callers are encouraged
to break their ids into batches and call the 2-arg version with each batch
in parallel (e.g. using clojure.core/pmap
), then merge the results.
Returns the set of ids for all licenses found in the given text (optionally from the provided list of license ids), or nil if none were found. Note: this method has a substantial performance cost. Callers are encouraged to break their ids into batches and call the 2-arg version with each batch in parallel (e.g. using `clojure.core/pmap`), then merge the results.
(text-contains-exception? text exception-id)
Does the text contain the exception somewhere within it?
Does the text contain the exception somewhere within it?
(text-contains-license? text license-id)
Does the text contain the license somewhere within it?
Does the text contain the license somewhere within it?
(text-is-exception? text exception-id)
Does the entire text match the exception?
Does the entire text match the exception?
(text-is-license? text license-id)
Does the entire text match the license?
Does the entire text match the license?
(texts-equivalent-exceptions? text1 text2)
Do the two texts represent equivalent exceptions?
Do the two texts represent equivalent exceptions?
(texts-equivalent-licenses? text1 text2)
Do the two texts represent equivalent licenses?
Do the two texts represent equivalent licenses?
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close