4 #define tf_profiler(x) // profiler(x) 14 while(*src && *src!=3) src++;
28 if (p_reserved_chars == 0 || *p_reserved_chars == 0)
30 p_out->
write(p_inputtype,p_source,p_source_len);
36 t_size good_byte_count = 0;
37 while(index < p_source_len)
40 if (delta == 0)
break;
43 if (good_byte_count > 0) {p_out->
write(p_inputtype,p_source+index-good_byte_count,good_byte_count);good_byte_count=0;}
44 p_out->
write(p_inputtype,
"_",1);
48 good_byte_count += delta;
52 if (good_byte_count > 0) {p_out->
write(p_inputtype,p_source+index-good_byte_count,good_byte_count);good_byte_count=0;}
68 return m_api->process_field(*m_info,m_location,p_out,p_name,p_name_length,p_found_flag);
71 return m_api->process_function(*m_info,m_location,p_out,p_name,p_name_length,p_params,p_found_flag);
102 get_param(index,str,str_len);
114 p_found_flag =
false;
115 if (m_hook1 && m_hook1->process_field(p_out,p_name,p_name_length,p_found_flag))
return true;
116 p_found_flag =
false;
117 if (m_hook2 && m_hook2->process_field(p_out,p_name,p_name_length,p_found_flag))
return true;
118 p_found_flag =
false;
124 p_found_flag =
false;
125 if (m_hook1 && m_hook1->process_function(p_out,p_name,p_name_length,p_params,p_found_flag))
return true;
126 p_found_flag =
false;
127 if (m_hook2 && m_hook2->process_function(p_out,p_name,p_name_length,p_params,p_found_flag))
return true;
128 p_found_flag =
false;
135 while(maxval > 0) {maxval/=10;width++;}
152 if (!
compile(ptr,p_spec)) p_out =
"[COMPILATION ERROR]";
153 else ptr->run(p_source,p_out,NULL);
165 const GUID meta = { 0xcd839c8e, 0x5c66, 0x4ae1, { 0x8d, 0xad, 0x71, 0x1f, 0x86, 0x0, 0xa, 0xe3 } };
166 const GUID unknown = { 0x673aa1cd, 0xa7a8, 0x40c8, { 0xbf, 0x9b, 0x34, 0x37, 0x99, 0x29, 0x16, 0x3b } };
184 while(walk < p_data_length && !isReserved(p_data[walk]) && p_data[walk] != 0) walk++;
186 if (walk >= p_data_length || p_data[walk] == 0)
break;
void write(const GUID &p_inputtype, const char *p_data, t_size p_data_length)
t_size strstr_ex(const char *p_string, t_size p_string_len, const char *p_substring, t_size p_substring_len)
virtual void write(const GUID &p_inputtype, const char *p_data, t_size p_data_length=~0)=0
void write_int_padded(const GUID &p_inputtype, t_int64 val, t_int64 maxval)
Main interface class for information about some playable object.
t_size strlen_max(const char *ptr, t_size max)
virtual void add_string(const char *p_string, t_size p_string_size=~0)=0
void write(const service_ptr_t< file > &p_file, abort_callback &p_abort, const char *p_string, bool is_utf8)
unsigned atoui_ex(const char *p_string, t_size p_string_len)
string replaceIllegalNameChars(string fn, bool allowWC)
void write(const GUID &p_inputtype, pfc::string_receiver &p_out, const char *p_data, t_size p_data_length)
void write_int(const GUID &p_inputtype, t_int64 val)
virtual void write(const GUID &p_inputtype, pfc::string_receiver &p_out, const char *p_data, t_size p_data_length)
New EXPERIMENTAL string class, allowing efficient copies and returning from functions. Does not implement the string_base interface so you still need string8 in many cases. Safe to pass between DLLs, but since a reference is used, objects possibly created by other DLLs must be released before owning DLLs are unloaded.
t_size utf8_char_len(const char *s, t_size max=~0)
void write(const GUID &p_inputType, pfc::string_receiver &p_out, const char *p_data, t_size p_dataLength)