You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/rds2cpp/RObject.hpp
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,22 @@ struct SymbolIndex final : public RObject {
102
102
std::size_t index = - 1;
103
103
};
104
104
105
+
/**
106
+
* @param name Name of the symbol, see `Symbol::name`.
107
+
* @param name Encoding of the symbol, see `Symbol::encoding`.
108
+
* @param symbols Vector containing the global set of symbols, typically `RdsFile::symbols` or `RdaFile::symbols`.
109
+
*
110
+
* @return A new symbol is added to `symbols` and a `SymbolIndex` is returned that points to the new entry of `symbols`.
111
+
*
112
+
* This is a convenient helper to register new symbols in `RdsFile` prior to calling `write_rds()` (or to `RdaFile` before `write_rda()`).
113
+
* It returns a `SymbolIndex` that can be used in various fields like `LanguageArgument::name`, `PairListElement::tag`, `EnvironmentVariable::name`, etc.
0 commit comments