public int AddString(UnicodeString str){field_1_num_strings++;UnicodeString ucs = (str == null) ? EMPTY_STRING: str;int rval;int index = field_3_strings.GetIndex(ucs);if (index != -1){rval = index;}else{rval = field_3_strings.Size;field_2_num_unique_strings++;SSTDeserializer.AddToStringTable(field_3_strings, ucs);}return rval;}