Lines Matching refs:value

45 	StringBuilder& Write(const char* attribute, Value value)
47 if (_IsValueEmpty(value))
52 _WriteValue(value);
89 void _WriteValue(const char* value)
91 _WriteMaybeQuoted(value);
94 void _WriteValue(const BPackageVersion& value)
99 if (value.InitCheck() != B_OK) {
104 _Write(value.ToString());
107 void _WriteValue(const BStringList& value)
109 int32 count = value.CountStrings();
111 _WriteMaybeQuoted(value.StringAt(0));
115 int32 count = value.CountStrings();
118 _WriteMaybeQuoted(value.StringAt(i));
127 void _WriteValue(const BObjectList<Value>& value)
135 int32 count = value.CountItems();
138 _WriteListElement(value.ItemAt(i));
146 void _WriteListElement(const Value* value)
148 _Write(value->ToString());
150 && value->Name() == fBasePackage) {
155 void _WriteListElement(const BGlobalWritableFileInfo* value)
157 _WriteMaybeQuoted(value->Path());
158 if (value->IsDirectory()) {
162 if (value->IsIncluded()) {
164 _Write(kWritableFileUpdateTypes[value->UpdateType()]);
168 void _WriteListElement(const BUserSettingsFileInfo* value)
170 _WriteMaybeQuoted(value->Path());
171 if (value->IsDirectory()) {
173 } else if (!value->TemplatePath().IsEmpty()) {
175 _WriteMaybeQuoted(value->TemplatePath());
179 void _WriteListElement(const BUser* value)
181 _WriteMaybeQuoted(value->Name());
183 if (!value->RealName().IsEmpty()) {
185 _WriteMaybeQuoted(value->RealName());
188 if (!value->Home().IsEmpty()) {
190 _WriteMaybeQuoted(value->Home());
193 if (!value->Shell().IsEmpty()) {
195 _WriteMaybeQuoted(value->Shell());
198 if (!value->Groups().IsEmpty()) {
200 BString groups = value->Groups().Join(" ");
210 static inline bool _IsValueEmpty(const char* value)
212 return value[0] == '\0';
215 static inline bool _IsValueEmpty(const BPackageVersion& value)
221 static inline bool _IsValueEmpty(const List& value)
223 return value.IsEmpty();